Avoid crashes due to SQLite support in older Android versions for debug builds
Cette révision appartient à :
Parent
3192d47837
révision
459b369feb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
|
@ -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 {
|
||||
|
|
Référencer dans un nouveau ticket