Skip to content
Snippets Groups Projects
Commit 19a98362 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix IllegalStateException

parent 5ad9172e
No related branches found
No related tags found
1 merge request!223Fix for beta
......@@ -208,7 +208,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
fun goBack(): Boolean {
val activity = activity ?: return false
if (!isRootDirectory) activity.supportFragmentManager.popBackStack()
if (!isRootDirectory && !activity.isFinishing && !activity.isDestroyed) activity.supportFragmentManager.popBackStack()
return !isRootDirectory
}
......
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