mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
do not try opening any path if the fragment is gone
This commit is contained in:
@ -83,6 +83,10 @@ class ItemsFragment : Fragment(), ItemsAdapter.ItemOperationsListener, Breadcrum
|
||||
}
|
||||
|
||||
fun openPath(path: String) {
|
||||
if (!isAdded) {
|
||||
return
|
||||
}
|
||||
|
||||
var realPath = path.trimEnd('/')
|
||||
if (realPath.isEmpty())
|
||||
realPath = "/"
|
||||
|
Reference in New Issue
Block a user