From 9d8a41c475f4882d80118965a407fa97c3669a35 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquart Date: Tue, 27 Jun 2023 08:39:30 +0200 Subject: 1222: improve hide my ip switch reactivity. --- .../e/advancedprivacy/domain/usecases/IpScramblingStateUseCase.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java/foundation/e') diff --git a/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/IpScramblingStateUseCase.kt b/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/IpScramblingStateUseCase.kt index 6ae0746..d2d26e6 100644 --- a/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/IpScramblingStateUseCase.kt +++ b/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/IpScramblingStateUseCase.kt @@ -153,6 +153,7 @@ class IpScramblingStateUseCase( } private fun applyStartIpScrambling() { + localStateRepository.internetPrivacyMode.value = HIDE_IP_LOADING ipScramblerModule.prepareAndroidVpn()?.let { permissionsPrivacyModule.setVpnPackageAuthorization(appDesc.packageName) permissionsPrivacyModule.getAlwaysOnVpnPackage() -- cgit v1.2.1