use one slash at otg:/ by default

This commit is contained in:
tibbi 2018-02-14 18:55:49 +01:00
parent 73437adc9d
commit 4438917a4c
2 changed files with 2 additions and 2 deletions

View file

@ -248,7 +248,7 @@ fun Context.updateLastModified(file: File, lastModified: Long) {
}
}
fun Context.getOTGItems(path: String, callback: (List<FileDirItem>) -> Unit) {
fun Context.getOTGItems(path: String, callback: (ArrayList<FileDirItem>) -> Unit) {
val items = ArrayList<FileDirItem>()
val OTGTreeUri = baseConfig.OTGTreeUri
var rootUri = DocumentFile.fromTreeUri(applicationContext, Uri.parse(OTGTreeUri))

View file

@ -6,7 +6,7 @@ const val APP_VERSION_NAME = "app_version_name"
const val REAL_FILE_PATH = "real_file_path"
const val IS_FROM_GALLERY = "is_from_gallery"
const val BROADCAST_REFRESH_MEDIA = "com.simplemobiletools.REFRESH_MEDIA"
const val OTG_PATH = "otg://"
const val OTG_PATH = "otg:/"
// shared preferences
const val PREFS_KEY = "Prefs"