Revert "Revert history Compose/SQLDelight changes"

This reverts commit 96c894ce5b.
This commit is contained in:
arkon
2022-04-22 17:29:24 -04:00
parent 42eaaa497f
commit 2b79295240
89 changed files with 1814 additions and 996 deletions
@@ -166,7 +166,7 @@ class NotificationReceiver : BroadcastReceiver() {
* @param chapterId id of chapter
*/
private fun openChapter(context: Context, mangaId: Long, chapterId: Long) {
val db = DatabaseHelper(context)
val db = Injekt.get<DatabaseHelper>()
val manga = db.getManga(mangaId).executeAsBlocking()
val chapter = db.getChapter(chapterId).executeAsBlocking()
if (manga != null && chapter != null) {