Fixed a bug where AuthActivity was started with an unlocked database

pull/41/head
Alexander Bakker 7 years ago
parent 5aad0d62f9
commit 3e1c3ef3f1

@ -378,9 +378,13 @@ public class MainActivity extends AegisActivity implements KeyProfileView.Listen
}
private boolean doShortcutActions() {
// return false if an action was blocked by a locked database
// otherwise, always return true
Intent intent = getIntent();
String action = intent.getStringExtra("action");
if (action == null || _db.isLocked()) {
if (action == null) {
return true;
} else if (_db.isLocked()) {
return false;
}

Loading…
Cancel
Save