diff --git a/opentasks/src/main/java/org/dmfs/tasks/quicksettings/TaskQuickSettingsTile.java b/opentasks/src/main/java/org/dmfs/tasks/quicksettings/TaskQuickSettingsTile.java index e483ced3de000178366d1aa19fadf2c19570007e..f87b9e8406c7957640f06bfe46766b3b987bcf0d 100644 --- a/opentasks/src/main/java/org/dmfs/tasks/quicksettings/TaskQuickSettingsTile.java +++ b/opentasks/src/main/java/org/dmfs/tasks/quicksettings/TaskQuickSettingsTile.java @@ -14,13 +14,8 @@ public class TaskQuickSettingsTile extends TileService { @Override public void onClick() { final Intent taskCreateIntent = new Intent(getApplicationContext(), EditTaskActivity.class); - taskCreateIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); - unlockAndRun(new Runnable() { - @Override - public void run() { - startActivityAndCollapse(taskCreateIntent); - } - }); + taskCreateIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); + unlockAndRun(() -> startActivityAndCollapse(taskCreateIntent)); } @Override