mirror of
https://github.com/ev-map/EVMap.git
synced 2026-09-18 00:08:45 -04:00
fix crash on first start
This commit is contained in:
1 parent
e22e1521a4
commit
3336faa953
1 file changed
+1
-1
@@ -46,7 +46,7 @@ abstract class AppDatabase : RoomDatabase() {
|
||||
.addCallback(object : Callback() {
|
||||
override fun onCreate(db: SupportSQLiteDatabase) {
|
||||
// create default filter profile
|
||||
db.execSQL("INSERT INTO `FilterProfile` (`name`, `id`) VALUES ('FILTERS_CUSTOM', $FILTERS_CUSTOM)")
|
||||
db.execSQL("INSERT INTO `FilterProfile` (`name`, `id`, `order`) VALUES ('FILTERS_CUSTOM', $FILTERS_CUSTOM, 0)")
|
||||
}
|
||||
})
|
||||
.build()
|
||||
|
||||
Reference in new issue
Block a user