diff --git a/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/display/DisplayToolbar.kt b/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/display/DisplayToolbar.kt index 38a4844dba2..b3b72fd92b9 100644 --- a/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/display/DisplayToolbar.kt +++ b/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/display/DisplayToolbar.kt @@ -511,10 +511,6 @@ class DisplayToolbar internal constructor( } internal fun setTrackingProtectionState(state: Toolbar.SiteTrackingProtection) { - if (!indicators.contains(Indicators.TRACKING_PROTECTION)) { - return - } - views.trackingProtectionIndicator.siteTrackingProtection = state updateSeparatorVisibility() } diff --git a/docs/changelog.md b/docs/changelog.md index 05f10d09d3f..c4df9969992 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -14,6 +14,9 @@ permalink: /changelog/ * **feature-search** * Adds the `extraAdServersRegexps` of Baidu to help sending the baidu search telemetry of ads. [#11582](https://github.com/mozilla-mobile/android-components/pull/11582) +* **browser-toolbar** + * 🚒 Bug fixed [issue #11499](https://github.com/mozilla-mobile/android-components/issues/11499) - Update tracking protection icon state even when is not displayed + * **browser-toolbar** * 🚒 Bug fixed [issue #11545](https://github.com/mozilla-mobile/android-components/issues/11545) - `clearColorFilter` doesn't work on Api 21, 22, so the default white filter remains set.Use `clearColorFilter` only when the version of API is bigger than 22