diff --git a/app/build.gradle b/app/build.gradle index b99dff53f..723179bf8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -77,7 +77,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.31.16' + implementation 'com.simplemobiletools:commons:5.31.17' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index 852559934..91f579292 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -326,10 +326,11 @@ fun Context.getNoMediaFoldersSync(): ArrayList { val path = cursor.getStringValue(Files.FileColumns.DATA) ?: continue val noMediaFile = File(path) if (getDoesFilePathExist(noMediaFile.absolutePath, OTGPath) && noMediaFile.name == NOMEDIA) { - folders.add("${noMediaFile.parent}") + folders.add(noMediaFile.parent) } } while (cursor.moveToNext()) } + } catch (ignored: Exception) { } finally { cursor?.close() }