lets store the widget text and background colors separately per widget

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

View File

@ -9,4 +9,6 @@ import androidx.room.PrimaryKey
data class Widget(
@PrimaryKey(autoGenerate = true) var id: Long?,
@ColumnInfo(name = "widget_id") var widgetId: Int,
@ColumnInfo(name = "note_id") var noteId: Long)
@ColumnInfo(name = "note_id") var noteId: Long,
@ColumnInfo(name = "widget_bg_color") var widgetBgColor: Int,
@ColumnInfo(name = "widget_text_color") var widgetTextColor: Int)