Revert "Move unlock-check from onCreate to onStart (to provide security even if multiple singlenotewidgets are clicked after another)"

This reverts commit dd36786a

Moving it to onStart created more trouble than was worth
This commit is contained in:
Christoph Loy 2020-03-06 13:35:02 +01:00
parent 22203c3bb5
commit 6a43d268e9
No known key found for this signature in database
GPG key ID: 9179970615A6E7C9

View file

@ -26,6 +26,10 @@ public abstract class LockedActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
Thread.currentThread().setUncaughtExceptionHandler(new ExceptionHandler(this));
if (isTaskRoot()) {
askToUnlock();
}
}
@Override
@ -33,16 +37,6 @@ public abstract class LockedActivity extends AppCompatActivity {
super.onResume();
if (!isTaskRoot()) {
// TODO - Evaluate if this is really needed
askToUnlock();
}
}
@Override
protected void onStart() {
super.onStart();
if (isTaskRoot()) {
askToUnlock();
}
}