use incasesensitive comparison at Downloads folder obtaining
This commit is contained in:
parent
3b14330b5d
commit
2acc6d01b9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue