From e2fa9646d9f0a43bf91df8aba68a4f1f14a7fec1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 25 Apr 2018 23:01:23 +0200 Subject: [PATCH] update commons to 3.19.20 --- app/build.gradle | 2 +- .../com/simplemobiletools/gallery/helpers/MediaFetcher.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index aaa799cca..b1ce3ff87 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,7 +47,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.19.18' + implementation 'com.simplemobiletools:commons:3.19.20' implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0' implementation 'com.android.support:multidex:1.0.3' implementation 'it.sephiroth.android.exif:library:1.0.1' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index 2c3ea3dae..9ef0f82e5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -253,7 +253,7 @@ class MediaFetcher(val context: Context) { else -> TYPE_GIFS } - val path = Uri.decode(file.uri.toString().replaceFirst("${context.config.OTGBasePath}%3A", OTG_PATH)) + val path = Uri.decode(file.uri.toString().replaceFirst("${context.config.OTGTreeUri}/document/${context.config.OTGPartition}%3A", OTG_PATH)) val medium = Medium(null, filename, path, folder, dateModified, dateTaken, size, type) media.add(medium) }