diff options
author | Guillaume Jacquart <guillaume.jacquart-ext@mousquetaires.com> | 2022-11-28 18:35:45 +0100 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart-ext@mousquetaires.com> | 2022-11-28 18:42:54 +0100 |
commit | cde9ed0b42898f9f87004dda337b9ce7cf46d3cf (patch) | |
tree | c36759a313267b950be2fc72227e1051a1fecf91 /app/src/main/java/foundation/e/privacycentralapp/widget | |
parent | 2f40c62572be0fffa04fe6cf105ece937389e287 (diff) | |
download | advanced-privacy-cde9ed0b42898f9f87004dda337b9ce7cf46d3cf.tar.gz |
5903: move ipscrambling speed message to warning dialog.
Diffstat (limited to 'app/src/main/java/foundation/e/privacycentralapp/widget')
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/widget/WidgetCommandReceiver.kt | 12 |
1 files changed, 1 insertions, 11 deletions
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 4a103e0..e01f47f 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 -> {} } } |