Allow state loss when opening task edit fragment

pull/1111/head
Alex Baker 4 years ago
parent 2fc8d0f251
commit af3b33513f

@ -376,7 +376,7 @@ class MainActivity : InjectingAppCompatActivity(), TaskListFragmentCallbackHandl
supportFragmentManager.beginTransaction() supportFragmentManager.beginTransaction()
.replace(R.id.detail, fragment, TaskEditFragment.TAG_TASKEDIT_FRAGMENT) .replace(R.id.detail, fragment, TaskEditFragment.TAG_TASKEDIT_FRAGMENT)
.runOnCommit { showDetailFragment() } .runOnCommit { showDetailFragment() }
.commitNow() .commitNowAllowingStateLoss()
} }
} }

Loading…
Cancel
Save