From 2acc6d01b9fae365e06c1908d01291b83c17ac19 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 22 Mar 2018 15:05:28 +0100 Subject: [PATCH] use incasesensitive comparison at Downloads folder obtaining --- .../com/simplemobiletools/gallery/extensions/FileDirItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/FileDirItem.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/FileDirItem.kt index b882a9bb7..b9f637574 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/FileDirItem.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/FileDirItem.kt @@ -3,4 +3,4 @@ package com.simplemobiletools.gallery.extensions import android.os.Environment import com.simplemobiletools.commons.models.FileDirItem -fun FileDirItem.isDownloadsFolder() = path == Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString() +fun FileDirItem.isDownloadsFolder() = path.equals(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString(), true)