mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-13 18:02:17 +02:00
lets show SD card images to Android 4 users too
This commit is contained in:
parent
51fb913d0c
commit
f48d408b18
@ -80,7 +80,8 @@ class MediaFetcher(val context: Context) {
|
|||||||
if (context.hasExternalSDCard()) {
|
if (context.hasExternalSDCard()) {
|
||||||
arrayOf("${context.internalStoragePath}/%", "${context.sdCardPath}/%")
|
arrayOf("${context.internalStoragePath}/%", "${context.sdCardPath}/%")
|
||||||
} else {
|
} else {
|
||||||
arrayOf("${context.internalStoragePath}/%")
|
val internalPath = if (context.isAndroidFour()) "" else context.internalStoragePath
|
||||||
|
arrayOf("$internalPath/%")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
arrayOf("$path/%", "$path/%/%")
|
arrayOf("$path/%", "$path/%/%")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user