Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.2.13' propVersionName = '5.2.14' kotlin_version = '1.2.71' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt +1 −12 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ import android.os.Environment import android.provider.DocumentsContract import android.provider.MediaStore import android.text.TextUtils import android.widget.Toast import androidx.core.content.FileProvider import androidx.documentfile.provider.DocumentFile import com.simplemobiletools.commons.R Loading Loading @@ -50,17 +49,7 @@ fun Context.getSDCardPath(): String { } val finalPath = sdCardPath.trimEnd('/') // /storage/emulated/0 should probably never be an SD card path, so if it is, and the internal storage path matches a pattern, flip them val fullSDpattern = Pattern.compile("^/storage/[A-Za-z0-9]{4}-[A-Za-z0-9]{4}$") toast("final $finalPath\nint $internalStoragePath \n${fullSDpattern.matcher(internalStoragePath).matches()}", Toast.LENGTH_LONG) if (finalPath == "/storage/emulated/0" && fullSDpattern.matcher(internalStoragePath).matches()) { baseConfig.sdCardPath = internalStoragePath baseConfig.internalStoragePath = finalPath } else { baseConfig.sdCardPath = finalPath } return finalPath } Loading commons/src/main/res/values-zh-rTW/strings.xml +1 −1 File changed.Contains only whitespace changes. Show changes Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.2.13' propVersionName = '5.2.14' kotlin_version = '1.2.71' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt +1 −12 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ import android.os.Environment import android.provider.DocumentsContract import android.provider.MediaStore import android.text.TextUtils import android.widget.Toast import androidx.core.content.FileProvider import androidx.documentfile.provider.DocumentFile import com.simplemobiletools.commons.R Loading Loading @@ -50,17 +49,7 @@ fun Context.getSDCardPath(): String { } val finalPath = sdCardPath.trimEnd('/') // /storage/emulated/0 should probably never be an SD card path, so if it is, and the internal storage path matches a pattern, flip them val fullSDpattern = Pattern.compile("^/storage/[A-Za-z0-9]{4}-[A-Za-z0-9]{4}$") toast("final $finalPath\nint $internalStoragePath \n${fullSDpattern.matcher(internalStoragePath).matches()}", Toast.LENGTH_LONG) if (finalPath == "/storage/emulated/0" && fullSDpattern.matcher(internalStoragePath).matches()) { baseConfig.sdCardPath = internalStoragePath baseConfig.internalStoragePath = finalPath } else { baseConfig.sdCardPath = finalPath } return finalPath } Loading
commons/src/main/res/values-zh-rTW/strings.xml +1 −1 File changed.Contains only whitespace changes. Show changes