mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-24 05:46:14 +03:00
Move unlock-check from onCreate to onStart (to provide security even if multiple singlenotewidgets are clicked after another)
This commit is contained in:
parent
8d3e9c223b
commit
dd36786a81
1 changed files with 10 additions and 4 deletions
|
@ -26,10 +26,6 @@ public abstract class LockedActivity extends AppCompatActivity {
|
|||
super.onCreate(savedInstanceState);
|
||||
|
||||
Thread.currentThread().setUncaughtExceptionHandler(new ExceptionHandler(this));
|
||||
|
||||
if (isTaskRoot()) {
|
||||
askToUnlock();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -37,6 +33,16 @@ 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