Skip to content

Commit

Permalink
Fix a crash
Browse files Browse the repository at this point in the history
The support lib's FragmentPagerAdapter does this, so it's probably safe.
  • Loading branch information
DSteve595 committed Jan 13, 2017
1 parent ce11485 commit bee0765
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ open class FilesFragment : RxFragment() {
if (position >= count) {
childFragmentManager.beginTransaction()
.remove(`object` as Fragment)
.commitNow()
.commitNowAllowingStateLoss()
}
fragments.removeAt(position)
}
Expand Down

0 comments on commit bee0765

Please sign in to comment.