|
|
|
@ -10,8 +10,8 @@ class DatabasePrePopulateCallback(private val resources: Resources) : RoomDataba
|
|
|
|
|
|
|
|
|
|
|
|
override fun onCreate(db: SupportSQLiteDatabase) {
|
|
|
|
override fun onCreate(db: SupportSQLiteDatabase) {
|
|
|
|
db.execSQL(
|
|
|
|
db.execSQL(
|
|
|
|
"INSERT INTO favourite_categories (created_at, sort_key, title, `order`) VALUES (?,?,?,?)",
|
|
|
|
"INSERT INTO favourite_categories (created_at, sort_key, title, `order`, track) VALUES (?,?,?,?,?)",
|
|
|
|
arrayOf(System.currentTimeMillis(), 1, resources.getString(R.string.read_later), SortOrder.NEWEST.name)
|
|
|
|
arrayOf(System.currentTimeMillis(), 1, resources.getString(R.string.read_later), SortOrder.NEWEST.name, 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|