fixing a table name at a db insertion

This commit is contained in:
tibbi 2018-09-13 21:03:40 +02:00
parent d25101aa85
commit 3bd04a6eb6
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
fun insertWidget(widget: Widget): Int {
val values = fillWidgetContentValues(widget)
return mDb.insertWithOnConflict(NOTES_TABLE_NAME, null, values, CONFLICT_IGNORE).toInt()
return mDb.insertWithOnConflict(WIDGETS_TABLE_NAME, null, values, CONFLICT_IGNORE).toInt()
}
private fun fillNoteContentValues(note: Note): ContentValues {