lets show SD card images to Android 4 users too

This commit is contained in:
tibbi 2017-10-06 18:20:13 +02:00
parent 51fb913d0c
commit f48d408b18
1 changed files with 2 additions and 1 deletions

View File

@ -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/%/%")