add a new menu button for removing icons from the home screen

This commit is contained in:
tibbi
2022-09-22 22:19:18 +02:00
parent 06738b595c
commit 3441a84d02
6 changed files with 30 additions and 12 deletions

View File

@ -23,6 +23,9 @@ interface HomeScreenGridItemsDao {
@Query("UPDATE home_screen_grid_items SET `left` = :left, `top` = :top, `right` = :right, `bottom` = :bottom WHERE id = :id")
fun updateAppPosition(left: Int, top: Int, right: Int, bottom: Int, id: Long)
@Query("DELETE FROM home_screen_grid_items WHERE id = :id")
fun deleteById(id: Long)
@Query("DELETE FROM home_screen_grid_items WHERE package_name = :packageName")
fun deleteItem(packageName: String)
fun deleteByPackageName(packageName: String)
}