create a table for widgets

This commit is contained in:
tibbi
2018-11-07 12:25:47 +01:00
parent e7ff0c6e15
commit d0e731fcb7
6 changed files with 36 additions and 4 deletions

View File

@ -109,7 +109,7 @@ class WidgetConfigureActivity : SimpleActivity() {
val views = RemoteViews(packageName, R.layout.activity_main)
views.setBackgroundColor(R.id.notes_view, mBgColor)
AppWidgetManager.getInstance(this).updateAppWidget(mWidgetId, views)
val widget = Widget(mWidgetId, mCurrentNoteId)
val widget = Widget(null, mWidgetId, mCurrentNoteId)
dbHelper.insertWidget(widget)
storeWidgetBackground()