allow renaming icons on the home screen

This commit is contained in:
tibbi
2022-10-16 23:23:38 +02:00
parent c59bfc9d78
commit c5f329358a
5 changed files with 88 additions and 2 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 title = :title WHERE id = :id")
fun updateItemTitle(title: String, id: Long): Int
@Query("UPDATE home_screen_grid_items SET `left` = :left, `top` = :top, `right` = :right, `bottom` = :bottom WHERE id = :id")
fun updateItemPosition(left: Int, top: Int, right: Int, bottom: Int, id: Long)