From bd29616d8f78503eb4c062ce6627489bec4d8970 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 17 Jul 2020 16:32:54 -0500 Subject: [PATCH] commitNow on fragment transactions --- .../main/java/com/todoroo/astrid/activity/MainActivity.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 b003b43d5..030dc7c55 100644 --- a/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt +++ b/app/src/main/java/com/todoroo/astrid/activity/MainActivity.kt @@ -273,7 +273,7 @@ class MainActivity : InjectingAppCompatActivity(), TaskListFragmentCallbackHandl supportFragmentManager .beginTransaction() .replace(R.id.detail, newEmptyTaskEditFragment(it)) - .commit() + .commitNow() } if (isSinglePaneLayout) { binding.master.visibility = View.VISIBLE @@ -306,8 +306,7 @@ class MainActivity : InjectingAppCompatActivity(), TaskListFragmentCallbackHandl supportFragmentManager .beginTransaction() .replace(R.id.master, taskListFragment, FRAG_TAG_TASK_LIST) - .commit() - + .commitNow() } private fun applyTheme() {