do not try opening any path if the fragment is gone
This commit is contained in:
parent
30bd5dc250
commit
3c88cbfbee
1 changed files with 4 additions and 0 deletions
|
@ -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 = "/"
|
||||
|
|
Loading…
Reference in a new issue