mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 22:37:56 +01:00 
			
		
		
		
	Avoid crashes due to SQLite support in older Android versions for debug builds
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user