Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
For #11499 - Update tracking protection icon state
Browse files Browse the repository at this point in the history
Update the state of tracking protection indicator even when is not displayed
in order to avoid that scenario when the tracking protection became visible later
but its state is not the last one
  • Loading branch information
Ionut Cristian Bedregeanu authored and mergify[bot] committed Jan 25, 2022
1 parent 0ece7ef commit 54d5d35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 54d5d35

Please sign in to comment.