mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
make the database favorite checker case insensitive
This commit is contained in:
parent
12039bf4c5
commit
f61979b6eb
@ -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…
x
Reference in New Issue
Block a user