mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
fix #269, allow using different colors per widget
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user