mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-05-19 14:20:37 -04: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