mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Remove copy menu for group
This commit is contained in:
1 parent
afedbb38b2
commit
d4cc3a58d8
2 files changed
+7
-2
No files matched your search
@@ -353,7 +353,7 @@ public class GroupActivity extends ListNodesActivity
|
||||
Log.e(TAG, "Copy not allowed for group");
|
||||
break;
|
||||
case ENTRY:
|
||||
copyNode((PwEntry) nodeToCopy, mCurrentGroup);
|
||||
copyEntry((PwEntry) nodeToCopy, mCurrentGroup);
|
||||
break;
|
||||
}
|
||||
nodeToCopy = null;
|
||||
@@ -363,7 +363,7 @@ public class GroupActivity extends ListNodesActivity
|
||||
}
|
||||
}
|
||||
|
||||
private void copyNode(PwEntry entryToCopy, PwGroup newParent) {
|
||||
private void copyEntry(PwEntry entryToCopy, PwGroup newParent) {
|
||||
CopyEntryRunnable task = new CopyEntryRunnable(this, App.getDB(), entryToCopy, newParent,
|
||||
new AfterAddNode());
|
||||
task.setUpdateProgressTaskStatus(
|
||||
|
||||
@@ -278,6 +278,11 @@ public class NodeAdapter extends RecyclerView.Adapter<BasicViewHolder> {
|
||||
public void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
|
||||
menuInflater.inflate(R.menu.node_menu, contextMenu);
|
||||
|
||||
// TODO COPY For Group
|
||||
if (node.getType().equals(PwNode.Type.GROUP)) {
|
||||
contextMenu.removeItem(R.id.menu_copy);
|
||||
}
|
||||
|
||||
MenuItem menuItem = contextMenu.findItem(R.id.menu_open);
|
||||
menuItem.setOnMenuItemClickListener(mOnMyActionClickListener);
|
||||
if (!App.getDB().isReadOnly() && !node.equals(App.getDB().getPwDatabase().getRecycleBin())) {
|
||||
|
||||
Reference in new issue
Block a user