mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-25 07:51:26 +01:00
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 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
Block a user