From 4438917a4c48825b59d397d6dbbf1916f7861d74 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 14 Feb 2018 18:55:49 +0100 Subject: [PATCH] use one slash at otg:/ by default --- .../com/simplemobiletools/commons/extensions/Context-storage.kt | 2 +- .../kotlin/com/simplemobiletools/commons/helpers/Constants.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 186e6fc3e..c2c68bc94 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 @@ -248,7 +248,7 @@ fun Context.updateLastModified(file: File, lastModified: Long) { } } -fun Context.getOTGItems(path: String, callback: (List) -> Unit) { +fun Context.getOTGItems(path: String, callback: (ArrayList) -> Unit) { val items = ArrayList() val OTGTreeUri = baseConfig.OTGTreeUri var rootUri = DocumentFile.fromTreeUri(applicationContext, Uri.parse(OTGTreeUri)) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt index 2a9756043..01d0a8d42 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/Constants.kt @@ -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"