Rework edit favorites panel

This commit is contained in:
MM20
2022-09-18 15:10:04 +02:00
parent c2ccc15093
commit 86bdbecda3
18 changed files with 1009 additions and 296 deletions
@@ -17,6 +17,9 @@ interface SearchDao {
@Insert(onConflict = OnConflictStrategy.IGNORE)
fun insertSkipExisting(items: FavoritesItemEntity)
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertAllReplaceExisting(items: List<FavoritesItemEntity>)
@Query("SELECT * FROM Searchable " +
"WHERE ((:manuallySorted AND pinned > 1) OR " +
@@ -155,4 +158,6 @@ interface SearchDao {
@Query("DELETE FROM Searchable WHERE hidden = 0")
fun deleteAllFavorites()
@Query("UPDATE Searchable SET `pinned` = 0")
fun unpinAll()
}