Fix bad screen lock behaviour.

This commit is contained in:
Alex Hart 2021-01-07 10:37:55 -04:00
parent e95bb9cb0f
commit 677cf725a1

View file

@ -45,6 +45,13 @@ public class MainActivity extends PassphraseRequiredActivity {
CachedInflater.from(this).clear(); CachedInflater.from(this).clear();
} }
@Override
public Intent getIntent() {
return super.getIntent().setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_SINGLE_TOP);
}
@Override @Override
protected void onNewIntent(Intent intent) { protected void onNewIntent(Intent intent) {
super.onNewIntent(intent); super.onNewIntent(intent);