use incasesensitive comparison at Downloads folder obtaining

This commit is contained in:
tibbi 2018-03-22 15:05:28 +01:00
parent 3b14330b5d
commit 2acc6d01b9
1 changed files with 1 additions and 1 deletions

View File

@ -3,4 +3,4 @@ package com.simplemobiletools.gallery.extensions
import android.os.Environment import android.os.Environment
import com.simplemobiletools.commons.models.FileDirItem 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)