File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/src/main/kotlin/com/simplemobiletools/notes/activities Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import com.simplemobiletools.notes.extensions.dbHelper
2020import com.simplemobiletools.notes.extensions.getTextSize
2121import com.simplemobiletools.notes.helpers.MyWidgetProvider
2222import com.simplemobiletools.notes.models.Note
23+ import com.simplemobiletools.notes.models.Widget
2324import kotlinx.android.synthetic.main.widget_config.*
2425
2526class WidgetConfigureActivity : SimpleActivity () {
@@ -104,6 +105,8 @@ class WidgetConfigureActivity : SimpleActivity() {
104105 val views = RemoteViews (packageName, R .layout.activity_main)
105106 views.setBackgroundColor(R .id.notes_view, mBgColor)
106107 AppWidgetManager .getInstance(this ).updateAppWidget(mWidgetId, views)
108+ val widget = Widget (mWidgetId, mCurrentNoteId)
109+ dbHelper.insertWidget(widget)
107110
108111 storeWidgetBackground()
109112 requestWidgetUpdate()
You can’t perform that action at this time.
0 commit comments