diff --git a/app/src/main/java/foundation/e/privacycentralapp/data/repositories/LocalStateRepository.kt b/app/src/main/java/foundation/e/privacycentralapp/data/repositories/LocalStateRepository.kt index 6cb4f814cf70f1fda31395f2095c47505f510f1f..ed97c947d510588d460fc1c002d23ef12ed72706 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/data/repositories/LocalStateRepository.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/data/repositories/LocalStateRepository.kt @@ -81,10 +81,6 @@ class LocalStateRepository(context: Context) { private val _ipScramblingSetting = MutableStateFlow(sharedPref.getBoolean(KEY_IP_SCRAMBLING, false)) val ipScramblingSetting = _ipScramblingSetting.asStateFlow() - fun isIpScramblingFirstActivation(enabled: Boolean): Boolean { - return enabled && !sharedPref.contains(KEY_IP_SCRAMBLING) - } - fun setIpScramblingSetting(enabled: Boolean) { set(KEY_IP_SCRAMBLING, enabled) _ipScramblingSetting.update { enabled } diff --git a/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/GetQuickPrivacyStateUseCase.kt b/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/GetQuickPrivacyStateUseCase.kt index 85410d009394d51406b6adde9944110422ba0983..e2c0e7fbc2ede6cf8c8038ba1de5932f57398987 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/GetQuickPrivacyStateUseCase.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/domain/usecases/GetQuickPrivacyStateUseCase.kt @@ -81,11 +81,8 @@ class GetQuickPrivacyStateUseCase( localStateRepository.setFakeLocationEnabled(!localStateRepository.fakeLocationEnabled.value) } - fun toggleIpScramblingIsFirstActivation(): Boolean { - val enabled = !localStateRepository.ipScramblingSetting.value - val firstActivation = localStateRepository.isIpScramblingFirstActivation(enabled) - localStateRepository.setIpScramblingSetting(enabled) - return firstActivation + fun toggleIpScrambling() { + localStateRepository.setIpScramblingSetting(!localStateRepository.ipScramblingSetting.value) } val otherVpnRunning: SharedFlow = localStateRepository.otherVpnRunning diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardViewModel.kt b/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardViewModel.kt index 57e77908b6090b8e8314a5c8d4577485eeaa2061..18b4212cd0c03259887e3af3609a9ea4879ee075 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardViewModel.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardViewModel.kt @@ -94,7 +94,7 @@ class DashboardViewModel( fetchStatistics().first() } is Action.ToggleLocation -> getPrivacyStateUseCase.toggleLocation() - is Action.ToggleIpScrambling -> actionToggleIpScrambling() + is Action.ToggleIpScrambling -> getPrivacyStateUseCase.toggleIpScrambling() is Action.ShowFakeMyLocationAction -> _singleEvents.emit(SingleEvent.NavigateToLocationSingleEvent) is Action.ShowAppsPermissions -> @@ -123,16 +123,6 @@ class DashboardViewModel( } } - private suspend fun actionToggleIpScrambling() = withContext(Dispatchers.IO) { - val isFirstActivation = getPrivacyStateUseCase.toggleIpScramblingIsFirstActivation() - - if (isFirstActivation) _singleEvents.emit( - SingleEvent.ToastMessageSingleEvent( - message = R.string.dashboard_first_ipscrambling_activation - ) - ) - } - private suspend fun actionShowMostLeakedApp() = withContext(Dispatchers.IO) { _singleEvents.emit( trackersStatisticsUseCase.getMostLeakedApp()?.let { diff --git a/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetCommandReceiver.kt b/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetCommandReceiver.kt index 4a103e0365629e0ed8783883a148f4190d39c9d6..e01f47ff5f0a966fb7c6f8612a6e118463c17e12 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetCommandReceiver.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetCommandReceiver.kt @@ -20,9 +20,7 @@ package foundation.e.privacycentralapp.widget import android.content.BroadcastReceiver import android.content.Context import android.content.Intent -import android.widget.Toast import foundation.e.privacycentralapp.PrivacyCentralApplication -import foundation.e.privacycentralapp.R class WidgetCommandReceiver : BroadcastReceiver() { override fun onReceive(context: Context?, intent: Intent?) { @@ -31,15 +29,7 @@ class WidgetCommandReceiver : BroadcastReceiver() { when (intent?.action) { ACTION_TOGGLE_TRACKERS -> getQuickPrivacyStateUseCase?.toggleTrackers() ACTION_TOGGLE_LOCATION -> getQuickPrivacyStateUseCase?.toggleLocation() - ACTION_TOGGLE_IPSCRAMBLING -> { - if (getQuickPrivacyStateUseCase?.toggleIpScramblingIsFirstActivation() == true) { - Toast.makeText( - context, - context.getString(R.string.dashboard_first_ipscrambling_activation), - Toast.LENGTH_LONG - ).show() - } - } + ACTION_TOGGLE_IPSCRAMBLING -> getQuickPrivacyStateUseCase?.toggleIpScrambling() else -> {} } } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 75e3ce4cf6874894ec0e093971df72a4d8adc1f9..fc067de5451a70564d5e2123290e1a23808b63d1 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -78,7 +78,6 @@ Tippe, um herauszufinden, wie Tracker einfach blockiert, dein Standort gefälscht und deine IP-Adresse verschleiert werden kann. Benutzerdefinierte Datenschutz-Einstellungen werden angewendet Schließen - Das Verschleiern deiner IP wird möglicherweise die Internetgeschwindigkeit verlangsamen. Benutzerdefinierte Datenschutz-Einstellungen werden angewandt Ansicht Ansicht diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 3b9a53fd018ab583108294e0f1b098e88af527a6..68d8d01fba52bd0e3b075aeb0a9d302ec4fefd54 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -50,7 +50,6 @@ Hallitse sovellusten käyttöoikeuksia %1$d sovellus seurainta, %2$d sallittua seurainta Hallitse sovellusten seuraimia - Kun IP-osoitteesi on väärennetty, Internetyhteytesi nopeus todennäköisesti heikkenee. Näytä %s seurainta on profiloinut tietojasi viimeisen 24 tunnin aikana Tänään diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index fdd84685f70a8b45a7658169a2b7e8f01677b134..b884e5b0d1f2c97a4e7546110190b4a684d97dde 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -66,7 +66,6 @@ \n \n\"Gérer ma position\" vous permet d\'utiliser une fausse position au lieu de votre position réelle. De cette façon, votre localisation réelle n\'est pas partagé avec des applications qui pourraient vous espionner. Les pisteurs sont des morceaux de code cachés dans les applications. Ils collectent vos données et suivent votre activité 24h/24 et 7j/7. Découvrez les pisteurs actifs et bloquez-les tous pour une meilleure protection. Pour éviter le dysfonctionnement de certaines applications, vous pouvez également choisir spécifiquement les pisteurs que vous souhaitez bloquer. - Votre vitesse Internet risque d\'être réduite tant que votre adresse IP est masquée. Fuites autorisées Fuites bloquées Appuyez sur les barres pour plus d\'informations. diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index ee2332741ede369c6941bd5d0bd3729cb8f0a063..2c44ff2917e28402382185a921ff6c8019144f4f 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -73,7 +73,6 @@ La tua privavy online non è protetta La tua privacy online è protetta App non installata. - Mentre l\'indirizzo IP è nascosto, la velocità su Internet risulta rallentata. Guarda Impostazioni della privacy personalizzate applicate Chiudi diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b1d241d007758fbcd90d243a8302c68a54160446..4d6e1f941c9fe91d7d4116e39df152df72f2c0a3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -30,7 +30,6 @@ Today %s trackers have profiled you in the last 24 hours View - While your IP is faked, your Internet speed is likely to be reduced. Manage apps\' trackers %1$d detected trackers, %2$d allowed trackers Manage apps\' permissions @@ -100,7 +99,7 @@ Fake my location While this option is active, some apps that rely on your real location may not work properly. It\'s recommended to enable it only occasionally, only when needed. Hide my IP - This option uses the TOR network to hide your real IP address. Only use it for specific applications. Important: we advise disabling this feature for email services as your address may end into permanent ban from your provider. + This option uses the TOR network to hide your real IP address. Only use it for specific applications. While your IP is faked, your Internet speed is likely to be reduced.\nImportant: we advise disabling this feature for email services as your address may end into permanent ban from your provider. I understand