mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
lets store the widget text and background colors separately per widget
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user