From 459b369feb8569ddd7484267f4fd5f94285e480d Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 16 Jul 2022 20:54:27 -0400 Subject: [PATCH] Avoid crashes due to SQLite support in older Android versions for debug builds --- app/src/main/java/eu/kanade/tachiyomi/AppModule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt b/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt index 3052bd6ef..e87db92f0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt @@ -41,7 +41,7 @@ class AppModule(val app: Application) : InjektModule { schema = Database.Schema, context = app, name = "tachiyomi.db", - factory = if (BuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + factory = if (BuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { // Support database inspector in Android Studio FrameworkSQLiteOpenHelperFactory() } else {