Skip to content

Commit 677cf72

Browse files
committed
Fix bad screen lock behaviour.
1 parent e95bb9c commit 677cf72

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/src/main/java/org/thoughtcrime/securesms/MainActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ protected void onCreate(Bundle savedInstanceState, boolean ready) {
4545
CachedInflater.from(this).clear();
4646
}
4747

48+
@Override
49+
public Intent getIntent() {
50+
return super.getIntent().setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
51+
Intent.FLAG_ACTIVITY_NEW_TASK |
52+
Intent.FLAG_ACTIVITY_SINGLE_TOP);
53+
}
54+
4855
@Override
4956
protected void onNewIntent(Intent intent) {
5057
super.onNewIntent(intent);

0 commit comments

Comments
 (0)