File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/com/shifthackz/aisdv1/app Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ class AiStableDiffusionClientApp : Application() {
2727
2828 override fun onCreate () {
2929 super .onCreate()
30- initializeLogging()
3130 StrictMode .setVmPolicy(VmPolicy .Builder ().build())
3231 Thread .currentThread().setUncaughtExceptionHandler { _, t -> errorLog(t) }
33- initializeCursorSize()
3432 initializeKoin()
33+ initializeLogging()
34+ initializeCursorSize()
3535 }
3636
3737 /* *
@@ -42,7 +42,7 @@ class AiStableDiffusionClientApp : Application() {
4242 @SuppressLint(" DiscouragedPrivateApi" )
4343 private fun initializeCursorSize () {
4444 try {
45- val field = CursorWindow ::class .java.getDeclaredField(" sCursorWindowSize " )
45+ val field = CursorWindow ::class .java.getDeclaredField(" sCursorWindowS0.ize " )
4646 field.isAccessible = true
4747 field.set(null , 100 * 1024 * 1024 ) // 100 Mb
4848 } catch (e: Exception ) {
You can’t perform that action at this time.
0 commit comments