From f48d408b18d4e80d05f5569f2dc0609ee0033801 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 6 Oct 2017 18:20:13 +0200 Subject: [PATCH] lets show SD card images to Android 4 users too --- .../com/simplemobiletools/gallery/helpers/MediaFetcher.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 5b8a27a13..2fddf4c94 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -80,7 +80,8 @@ class MediaFetcher(val context: Context) { if (context.hasExternalSDCard()) { arrayOf("${context.internalStoragePath}/%", "${context.sdCardPath}/%") } else { - arrayOf("${context.internalStoragePath}/%") + val internalPath = if (context.isAndroidFour()) "" else context.internalStoragePath + arrayOf("$internalPath/%") } } else { arrayOf("$path/%", "$path/%/%")