Skip to content
Snippets Groups Projects
Commit e1842d3a authored by Taras's avatar Taras
Browse files

Change transaction to comit

parent a973e08e
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ class GalleryDialogFragment : BaseFullscreenDialogFragment(DialogFragmentGallery
private fun addGalleryFragment() {
childFragmentManager.beginTransaction()
.replace(R.id.lContainer, galleryFragment)
.commitAllowingStateLoss()
.commit()
}
private fun setupObservers() {
......@@ -132,7 +132,7 @@ class GalleryDialogFragment : BaseFullscreenDialogFragment(DialogFragmentGallery
.addSharedElement(view, view.transitionName)
.replace(R.id.lContainer, fragment, fragment.javaClass.name)
.addToBackStack(fragment.javaClass.name)
.commitAllowingStateLoss()
.commit()
}
override fun onChildBackPress(callback: OnBackPressedCallback) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment