Explorar o código

Avoid crashes due to SQLite support in older Android versions for debug builds

arkon %!s(int64=2) %!d(string=hai) anos
pai
achega
459b369feb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/AppModule.kt

+ 1 - 1
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 {