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.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();
}
}

Loading…
Cancel
Save