implementing initial drag & drop

This commit is contained in:
tibbi
2022-09-21 23:25:17 +02:00
parent f86caa6c89
commit 9fba3b56d6
3 changed files with 31 additions and 3 deletions

View File

@ -20,6 +20,9 @@ interface HomeScreenGridItemsDao {
@Query("UPDATE home_screen_grid_items SET title = :title WHERE package_name = :packageName")
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)
@Query("DELETE FROM home_screen_grid_items WHERE package_name = :packageName")
fun deleteItem(packageName: String)
}