From af3b33513feb8bdfcb21af09e54d12e4197f3cc7 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 2 Sep 2020 08:45:42 -0500 Subject: [PATCH] Allow state loss when opening task edit fragment --- app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt b/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt index e5014bd66..3d3774202 100644 --- a/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt +++ b/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt @@ -376,7 +376,7 @@ class MainActivity : InjectingAppCompatActivity(), TaskListFragmentCallbackHandl supportFragmentManager.beginTransaction() .replace(R.id.detail, fragment, TaskEditFragment.TAG_TASKEDIT_FRAGMENT) .runOnCommit { showDetailFragment() } - .commitNow() + .commitNowAllowingStateLoss() } }