diff --git a/build.gradle b/build.gradle index d95ac328f..7fc96b9e1 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '5.7.11' + propVersionName = '5.7.12' kotlin_version = '1.3.21' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/activities/BaseSimpleActivity.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/activities/BaseSimpleActivity.kt index b6ab2499a..f18cf493a 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/activities/BaseSimpleActivity.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/activities/BaseSimpleActivity.kt @@ -169,6 +169,7 @@ abstract class BaseSimpleActivity : AppCompatActivity() { } baseConfig.OTGTreeUri = resultData.dataString baseConfig.OTGPartition = baseConfig.OTGTreeUri.removeSuffix("%3A").substringAfterLast('/') + baseConfig.OTGPath = "/storage${baseConfig.OTGPartition}" funAfterOTGPermission?.invoke(true) funAfterOTGPermission = null diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt index 98635ceea..b66343dc2 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt @@ -195,6 +195,7 @@ fun Context.getOTGFastDocumentFile(path: String): DocumentFile? { if (baseConfig.OTGPartition.isEmpty()) { baseConfig.OTGPartition = baseConfig.OTGTreeUri.removeSuffix("%3A").substringAfterLast('/') + baseConfig.OTGPath = "/storage${baseConfig.OTGPartition}" } val relativePath = Uri.encode(path.substring(OTG_PATH.length).trim('/'))