summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-06-27 08:39:30 +0200
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-06-27 08:41:07 +0200
commit9d8a41c475f4882d80118965a407fa97c3669a35 (patch)
treeb9ad8f04736a3a5adc2e6c6ad7c7cb0d6e2da80e
parent9c084c2110489ec3b1b44549325c8e2e71a968a0 (diff)
1222: improve hide my ip switch reactivity.
-rw-r--r--app/src/main/java/foundation/e/advancedprivacy/domain/usecases/IpScramblingStateUseCase.kt1
1 files changed, 1 insertions, 0 deletions
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()