Skip to content

Commit

Permalink
tile service permission dialog: add flag FLAG_ACTIVITY_CLEAR_TASK to …
Browse files Browse the repository at this point in the history
…avoid multiple main activity instances
  • Loading branch information
rascarlo committed Oct 5, 2018
1 parent cce3c63 commit 8f43439
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void onClick(DialogInterface dialog, int which) {
@Override
public void onClick(DialogInterface dialog, int which) {
startActivityAndCollapse(new Intent(getApplicationContext(), MainActivity.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK));
}
});
break;
Expand Down

0 comments on commit 8f43439

Please sign in to comment.