Correction of exception when rotating with dialog open

This commit is contained in:
2017-02-27 22:33:09 -05:00
parent ac8b06456c
commit e3c02c54d4

View File

@@ -51,6 +51,8 @@ public class TaskDialogFragment extends DialogFragment {
fragment.task = task;
fragment.taskLists = taskLists;
fragment.mListener = newTaskListener;
// TODO: keep dialog open when rotating
fragment.setRetainInstance(true);
return fragment;
}