insert the initial note at creating the Room database

This commit is contained in:
tibbi
2018-11-07 12:33:34 +01:00
parent d0e731fcb7
commit 2fc3d8cba9
2 changed files with 8 additions and 4 deletions

View File

@ -18,7 +18,7 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
private val mDb = writableDatabase
companion object {
private const val DB_NAME = "notes.db"
private const val DB_NAME = "notes_old.db"
private const val DB_VERSION = 4
private const val NOTES_TABLE_NAME = "notes"
private const val WIDGETS_TABLE_NAME = "widgets"