mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 11:59:19 +01:00
Avoid crashes due to SQLite support in older Android versions for debug builds
This commit is contained in:
parent
3192d47837
commit
459b369feb
@ -41,7 +41,7 @@ class AppModule(val app: Application) : InjektModule {
|
|||||||
schema = Database.Schema,
|
schema = Database.Schema,
|
||||||
context = app,
|
context = app,
|
||||||
name = "tachiyomi.db",
|
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
|
// Support database inspector in Android Studio
|
||||||
FrameworkSQLiteOpenHelperFactory()
|
FrameworkSQLiteOpenHelperFactory()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user