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

@ -150,7 +150,7 @@ class WidgetConfigureActivity : SimpleActivity() {
views.setBackgroundColor(R.id.text_note_view, mBgColor)
views.setBackgroundColor(R.id.checklist_note_view, mBgColor)
AppWidgetManager.getInstance(this).updateAppWidget(mWidgetId, views)
val widget = Widget(null, mWidgetId, mCurrentNoteId)
val widget = Widget(null, mWidgetId, mCurrentNoteId, mBgColor, mTextColor)
ensureBackgroundThread {
widgetsDB.insertOrUpdate(widget)
}