mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-10-25 14:15:48 +03:00
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:
parent
22203c3bb5
commit
6a43d268e9
1 changed files with 4 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue