handle widget dragging

This commit is contained in:
tibbi
2022-10-01 15:25:54 +02:00
parent d4b4edd6eb
commit 65d13c31b1
2 changed files with 43 additions and 9 deletions

View File

@ -21,7 +21,7 @@ interface HomeScreenGridItemsDao {
fun updateAppTitle(title: String, packageName: String)
@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)
fun updateItemPosition(left: Int, top: Int, right: Int, bottom: Int, id: Long)
@Query("DELETE FROM home_screen_grid_items WHERE id = :id")
fun deleteById(id: Long)