Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4438917a authored by tibbi's avatar tibbi
Browse files

use one slash at otg:/ by default

parent 73437adc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))
+1 −1
Original line number Diff line number Diff line
@@ -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"