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

Commit

Permalink
Merge #4130
Browse files Browse the repository at this point in the history
4130: Closes #3925: Adding meaningful content descriptions to tracking protection toolbar icon for different states. r=rocketsroger a=Amejia481



Co-authored-by: Arturo Mejia <[email protected]>
  • Loading branch information
MozLando and Amejia481 committed Aug 23, 2019
2 parents 962a749 + 41cf2e5 commit 78b1010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package mozilla.components.browser.toolbar.display

import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.Animatable
import android.graphics.drawable.Drawable
Expand Down Expand Up @@ -82,7 +81,6 @@ internal class TrackingProtectionIconView @JvmOverloads constructor(
return drawableStates
}

@SuppressLint("NewApi")
private fun updateIcon() {
val descriptionId = when (siteTrackingProtection) {
ON_NO_TRACKERS_BLOCKED -> {
Expand Down
4 changes: 2 additions & 2 deletions components/browser/toolbar/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<!-- Content description: For the tracking protection toolbar icon, it is set when the site has tracking protection enabled, but none trackers have been blocked or detected. -->
<string name="mozac_browser_toolbar_content_description_tracking_protection_on_no_trackers_blocked">Tracking Protection is on</string>
<!-- Content description: For the tracking protection toolbar icon, it is set when the site has tracking protection enabled, and trackers have been blocked or detected.-->
<string name="mozac_browser_toolbar_content_description_tracking_protection_on_trackers_blocked">Tracking Protection is active blocking trackers</string>
<string name="mozac_browser_toolbar_content_description_tracking_protection_on_trackers_blocked">Tracking Protection has blocked trackers</string>
<!-- Content description: For the tracking protection toolbar icon, it is set when the site has tracking protection disabled.-->
<string name="mozac_browser_toolbar_content_description_tracking_protection_off_for_a_site">Tracking Protection is disabled for this site</string>
<string name="mozac_browser_toolbar_content_description_tracking_protection_off_for_a_site">Tracking Protection is off for this site</string>
<!-- Announcement made by the screen reader when the progress bar is shown and a page is loading -->
<string name="mozac_browser_toolbar_progress_loading">Loading</string>
</resources>

0 comments on commit 78b1010

Please sign in to comment.