mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-18 07:53:11 +00:00
Fixed a bug where AuthActivity was started with an unlocked database
This commit is contained in:
parent
5aad0d62f9
commit
3e1c3ef3f1
1 changed files with 5 additions and 1 deletions
|
@ -378,9 +378,13 @@ public class MainActivity extends AegisActivity implements KeyProfileView.Listen
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean doShortcutActions() {
|
private boolean doShortcutActions() {
|
||||||
|
// return false if an action was blocked by a locked database
|
||||||
|
// otherwise, always return true
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
String action = intent.getStringExtra("action");
|
String action = intent.getStringExtra("action");
|
||||||
if (action == null || _db.isLocked()) {
|
if (action == null) {
|
||||||
|
return true;
|
||||||
|
} else if (_db.isLocked()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue