allow to move an entry from the EntryActivity menu, closes https://github.com/PhilippC/keepass2android/issues/24
This commit is contained in:
@@ -1179,7 +1179,13 @@ namespace keepass2android
|
||||
{
|
||||
case Resource.Id.menu_donate:
|
||||
return Util.GotoDonateUrl(this);
|
||||
case Resource.Id.menu_delete:
|
||||
case Resource.Id.menu_move:
|
||||
var navMove = new NavigateToFolderAndLaunchMoveElementTask(App.Kp2a.CurrentDb, Entry.ParentGroup, new List<PwUuid>() {Entry.Uuid}, false);
|
||||
AppTask = navMove;
|
||||
navMove.SetActivityResult(this, Result.Ok);
|
||||
Finish();
|
||||
return true;
|
||||
case Resource.Id.menu_delete:
|
||||
DeleteEntry task = new DeleteEntry(this, App.Kp2a, Entry,
|
||||
new ActionOnFinish(this, (success, message, activity) => { if (success) { RequiresRefresh(); Finish();}}));
|
||||
task.Start();
|
||||
|
@@ -32,6 +32,11 @@
|
||||
android:title="@string/menu_delete"
|
||||
app:showAsAction="ifRoom"
|
||||
/>
|
||||
<item android:id="@+id/menu_move"
|
||||
android:icon="@drawable/ic_menu_cut"
|
||||
android:title="@string/menu_move"
|
||||
app:showAsAction="ifRoom"
|
||||
/>
|
||||
<item android:id="@+id/menu_donate"
|
||||
android:title="@string/menu_donate"
|
||||
app:showAsAction="ifRoom"
|
||||
|
Reference in New Issue
Block a user