make the database favorite checker case insensitive
This commit is contained in:
parent
12039bf4c5
commit
f61979b6eb
1 changed files with 1 additions and 1 deletions
|
@ -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<Medium>
|
||||
|
||||
@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)
|
||||
|
|
Loading…
Reference in a new issue