Add debug function to fix reader toast crash
This commit is contained in:
parent
0483097fc3
commit
142bdd14b7
@ -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()
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user