From f61979b6ebbc89bcf528e95beb3bc54c876bfd7c Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 11 Jun 2019 22:59:14 +0200 Subject: [PATCH] make the database favorite checker case insensitive --- .../com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt index ed96009a0..490bd62f4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/interfaces/MediumDao.kt @@ -21,7 +21,7 @@ interface MediumDao { @Query("SELECT filename, full_path, parent_path, last_modified, date_taken, size, type, video_duration, is_favorite, deleted_ts FROM media WHERE deleted_ts != 0") fun getDeletedMedia(): List - @Query("SELECT is_favorite FROM media WHERE full_path = :path") + @Query("SELECT is_favorite FROM media WHERE full_path = :path COLLATE NOCASE") fun isFavorite(path: String): Boolean @Insert(onConflict = REPLACE)