update Commons with some OTG improvements

This commit is contained in:
tibbi
2018-02-14 23:30:38 +01:00
parent 8ef70a8fe5
commit c340b9860e
6 changed files with 23 additions and 17 deletions

View File

@ -202,7 +202,7 @@ class MainActivity : SimpleActivity() {
val file = File(path)
if (file.exists() && !file.isDirectory) {
newPath = file.parent
} else if (!file.exists()) {
} else if (!file.exists() && !isPathOnOTG(newPath)) {
newPath = internalStoragePath
}