mirror of
https://github.com/moparisthebest/keepass2android
synced 2025-02-07 10:20:11 -05:00
Bugfix: it's now possible again to close the app by pressing back button in QuickUnlock (especially import with Share URL search)
This commit is contained in:
parent
2ca50c5778
commit
320f5e1fea
@ -41,6 +41,7 @@ namespace keepass2android
|
|||||||
public const Result ExitCloseAfterTaskComplete = Result.FirstUser+4;
|
public const Result ExitCloseAfterTaskComplete = Result.FirstUser+4;
|
||||||
public const Result TaskComplete = Result.FirstUser + 5;
|
public const Result TaskComplete = Result.FirstUser + 5;
|
||||||
public const Result ExitReloadDb = Result.FirstUser+6;
|
public const Result ExitReloadDb = Result.FirstUser+6;
|
||||||
|
public const Result ExitClose = Result.FirstUser + 7;
|
||||||
|
|
||||||
AppTask _appTask;
|
AppTask _appTask;
|
||||||
|
|
||||||
|
@ -153,6 +153,10 @@ namespace keepass2android
|
|||||||
SetResult(KeePass.ExitCloseAfterTaskComplete);
|
SetResult(KeePass.ExitCloseAfterTaskComplete);
|
||||||
Finish();
|
Finish();
|
||||||
break;
|
break;
|
||||||
|
case KeePass.ExitClose:
|
||||||
|
SetResult(KeePass.ExitClose);
|
||||||
|
Finish();
|
||||||
|
break;
|
||||||
case KeePass.ExitReloadDb:
|
case KeePass.ExitReloadDb:
|
||||||
//if the activity was killed, fill password/keyfile so the user can directly hit load again
|
//if the activity was killed, fill password/keyfile so the user can directly hit load again
|
||||||
if (App.Kp2a.GetDb().Loaded)
|
if (App.Kp2a.GetDb().Loaded)
|
||||||
|
@ -117,6 +117,12 @@ namespace keepass2android
|
|||||||
keyboard.ShowSoftInput(pwd, 0);
|
keyboard.ShowSoftInput(pwd, 0);
|
||||||
}, 50);
|
}, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void OnBackPressed()
|
||||||
|
{
|
||||||
|
SetResult(KeePass.ExitClose);
|
||||||
|
base.OnBackPressed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user