From bee07659c12815b5d6dd113ddad932b149978113 Mon Sep 17 00:00:00 2001 From: Steven Schoen Date: Fri, 13 Jan 2017 05:27:46 -0500 Subject: [PATCH] Fix a crash The support lib's FragmentPagerAdapter does this, so it's probably safe. --- .../main/java/com/stevenschoen/putionew/files/FilesFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/stevenschoen/putionew/files/FilesFragment.kt b/app/src/main/java/com/stevenschoen/putionew/files/FilesFragment.kt index 67011ad2..70b17fc2 100644 --- a/app/src/main/java/com/stevenschoen/putionew/files/FilesFragment.kt +++ b/app/src/main/java/com/stevenschoen/putionew/files/FilesFragment.kt @@ -342,7 +342,7 @@ open class FilesFragment : RxFragment() { if (position >= count) { childFragmentManager.beginTransaction() .remove(`object` as Fragment) - .commitNow() + .commitNowAllowingStateLoss() } fragments.removeAt(position) }