diff --git a/src/main/java/com/todoroo/astrid/activity/TaskListActivity.java b/src/main/java/com/todoroo/astrid/activity/TaskListActivity.java index 0be39f905..fc7069cc9 100644 --- a/src/main/java/com/todoroo/astrid/activity/TaskListActivity.java +++ b/src/main/java/com/todoroo/astrid/activity/TaskListActivity.java @@ -197,6 +197,7 @@ public class TaskListActivity extends InjectingAppCompatActivity implements fragmentManager.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE); fragmentManager.beginTransaction() .replace(isDoublePaneLayout() ? R.id.master_dual : R.id.single_pane, taskListFragment, FRAG_TAG_TASK_LIST) + .addToBackStack(FRAG_TAG_TASK_LIST) .commit(); } @@ -379,6 +380,7 @@ public class TaskListActivity extends InjectingAppCompatActivity implements taskEditFragment.discardButtonClick(); } } else { + getSupportFragmentManager().popBackStackImmediate(FRAG_TAG_TASK_LIST, FragmentManager.POP_BACK_STACK_INCLUSIVE); super.onBackPressed(); } }