fix #269, allow using different colors per widget

This commit is contained in:
tibbi
2019-08-19 23:24:47 +02:00
parent 93c6079fa9
commit 21a5c99315
3 changed files with 17 additions and 11 deletions

View File

@ -11,6 +11,9 @@ interface WidgetsDao {
@Query("SELECT * FROM widgets")
fun getWidgets(): List<Widget>
@Query("SELECT * FROM widgets WHERE widget_id = :widgetId")
fun getWidgetWithWidgetId(widgetId: Int): Widget?
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertOrUpdate(widget: Widget): Long