From 3bd04a6eb6145637680e3675abd0202453e5004b Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 13 Sep 2018 21:03:40 +0200 Subject: [PATCH] fixing a table name at a db insertion --- .../main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt index 9a1968aa..af98d55f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/helpers/DBHelper.kt @@ -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 {