diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt index 2e725c53e..f90f8fbd7 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountScreen.kt @@ -44,6 +44,7 @@ import com.vitorpamplona.quartz.utils.Log fun AccountScreen(accountStateViewModel: AccountStateViewModel) { // Pauses relay services when the app pauses ManageRelayServices() + ManageWebOkHttp() val accountState by accountStateViewModel.accountContent.collectAsStateWithLifecycle() @@ -67,6 +68,14 @@ fun ManageRelayServices() { .collectAsStateWithLifecycle() } +@Composable +fun ManageWebOkHttp() { + val torWebServices by Amethyst.instance.okHttpClients.defaultHttpClient + .collectAsStateWithLifecycle() + val openWebServices by Amethyst.instance.okHttpClients.defaultHttpClientWithoutProxy + .collectAsStateWithLifecycle() +} + @Composable fun LoadingSetup() { // A surface container using the 'background' color from the theme