Skip to content

Commit 8698af8

Browse files
committed
Fix Koin application
1 parent 42c9383 commit 8698af8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/shifthackz/aisdv1/app/AiStableDiffusionClientApp.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)