From 71fa5ec235cdd59ecc4906114eab28d601fdae18 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 5 Oct 2017 19:12:04 +0200 Subject: [PATCH] minor style update --- .../com/simplemobiletools/gallery/helpers/MediaFetcher.kt | 6 +++++- 1 file changed, 5 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 ac3178dc7..5b8a27a13 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -77,7 +77,11 @@ class MediaFetcher(val context: Context) { private fun getSelectionArgsQuery(path: String): Array { return if (path.isEmpty()) { - if (context.hasExternalSDCard()) arrayOf("${context.internalStoragePath}/%", "${context.sdCardPath}/%") else arrayOf("${context.internalStoragePath}/%") + if (context.hasExternalSDCard()) { + arrayOf("${context.internalStoragePath}/%", "${context.sdCardPath}/%") + } else { + arrayOf("${context.internalStoragePath}/%") + } } else { arrayOf("$path/%", "$path/%/%") }