Add debug function to fix reader toast crash

This commit is contained in:
Jobobby04 2021-04-14 18:16:23 -04:00
parent 0483097fc3
commit 142bdd14b7

View File

@ -305,4 +305,21 @@ object DebugFunctions {
prefs.savedSearches().set((otherSerialized + newSerialized).toSet()) prefs.savedSearches().set((otherSerialized + newSerialized).toSet())
} }
} }
fun fixReaderToastCrash() {
db.inTransaction {
db.lowLevel().executeSQL(
RawQuery.builder()
.query(
"""
UPDATE ${MangaTable.TABLE}
SET ${MangaTable.COL_VIEWER} = 0
WHERE ${MangaTable.COL_VIEWER} = -1
""".trimIndent()
)
.affectsTables(MangaTable.TABLE)
.build()
)
}
}
} }