mirror of
https://github.com/moparisthebest/keepass2android
synced 2025-02-07 02:10:10 -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 TaskComplete = Result.FirstUser + 5;
|
||||
public const Result ExitReloadDb = Result.FirstUser+6;
|
||||
public const Result ExitClose = Result.FirstUser + 7;
|
||||
|
||||
AppTask _appTask;
|
||||
|
||||
|
@ -153,6 +153,10 @@ namespace keepass2android
|
||||
SetResult(KeePass.ExitCloseAfterTaskComplete);
|
||||
Finish();
|
||||
break;
|
||||
case KeePass.ExitClose:
|
||||
SetResult(KeePass.ExitClose);
|
||||
Finish();
|
||||
break;
|
||||
case KeePass.ExitReloadDb:
|
||||
//if the activity was killed, fill password/keyfile so the user can directly hit load again
|
||||
if (App.Kp2a.GetDb().Loaded)
|
||||
|
@ -117,6 +117,12 @@ namespace keepass2android
|
||||
keyboard.ShowSoftInput(pwd, 0);
|
||||
}, 50);
|
||||
}
|
||||
|
||||
public override void OnBackPressed()
|
||||
{
|
||||
SetResult(KeePass.ExitClose);
|
||||
base.OnBackPressed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user