From 9f7672249b9bce975aaad56c83ee39e90d91b59e Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 26 Mar 2026 13:54:33 -0400 Subject: [PATCH] Otherwise, it is created by the main thread when the AccountViewModel Factory is run --- .../src/main/java/com/vitorpamplona/amethyst/AppModules.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/AppModules.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/AppModules.kt index b7718ae07a..3f26f521df 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/AppModules.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/AppModules.kt @@ -436,6 +436,12 @@ class AppModules( setImageLoader() } + // initializes diskcache on an IO thread. + applicationIOScope.launch { + // Sets Coil - Tor - OkHttp link + uiState + } + // registers to receive events pokeyReceiver.register(appContext)