Add task list to backstack

pull/437/head
Alex Baker 8 years ago
parent 43eeab95b9
commit 5f74a510e9

@ -197,6 +197,7 @@ public class TaskListActivity extends InjectingAppCompatActivity implements
fragmentManager.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE); fragmentManager.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
fragmentManager.beginTransaction() fragmentManager.beginTransaction()
.replace(isDoublePaneLayout() ? R.id.master_dual : R.id.single_pane, taskListFragment, FRAG_TAG_TASK_LIST) .replace(isDoublePaneLayout() ? R.id.master_dual : R.id.single_pane, taskListFragment, FRAG_TAG_TASK_LIST)
.addToBackStack(FRAG_TAG_TASK_LIST)
.commit(); .commit();
} }
@ -379,6 +380,7 @@ public class TaskListActivity extends InjectingAppCompatActivity implements
taskEditFragment.discardButtonClick(); taskEditFragment.discardButtonClick();
} }
} else { } else {
getSupportFragmentManager().popBackStackImmediate(FRAG_TAG_TASK_LIST, FragmentManager.POP_BACK_STACK_INCLUSIVE);
super.onBackPressed(); super.onBackPressed();
} }
} }

Loading…
Cancel
Save