mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-21 14:20:39 +01:00
properly handle going back to root of the USB storage in some cases
This commit is contained in:
parent
307e10d713
commit
3622ca84c9
@ -234,7 +234,9 @@ class MainActivity : SimpleActivity() {
|
|||||||
|
|
||||||
var newPath = path
|
var newPath = path
|
||||||
val file = File(path)
|
val file = File(path)
|
||||||
if (file.exists() && !file.isDirectory) {
|
if (config.OTGPath.isNotEmpty() && config.OTGPath == path.trimEnd('/')) {
|
||||||
|
newPath = path
|
||||||
|
} else if (file.exists() && !file.isDirectory) {
|
||||||
newPath = file.parent
|
newPath = file.parent
|
||||||
} else if (!file.exists() && !isPathOnOTG(newPath)) {
|
} else if (!file.exists() && !isPathOnOTG(newPath)) {
|
||||||
newPath = internalStoragePath
|
newPath = internalStoragePath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user