Do not send notifications if database was empty

This commit is contained in:
Matte23 authored and Matte23 committed 2021-02-09 15:02:38 +01:00
1 parent fdd817c827
commit 0a414b0dbc
2 files changed
+9 -3

No files matched your search

@@ -28,7 +28,7 @@ actual class DatabaseDriverFactory(private val path: String) {
val currentVer = DatabaseFactory.getVersion(it)
if (currentVer == 0) {
AppDatabase.Schema.create(it)
DatabaseFactory.setVersion(it, 1)
DatabaseFactory.setVersion(it, AppDatabase.Schema.version)
} else {
val schemaVer: Int = AppDatabase.Schema.version
if (schemaVer > currentVer) {