Avoid crashes due to SQLite support in older Android versions for debug builds
(cherry picked from commit 459b369feb8569ddd7484267f4fd5f94285e480d)
This commit is contained in:
parent
82b16be60f
commit
11737fb9ed
@ -47,7 +47,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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user