2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/23498 add content description for wallpapers

This commit is contained in:
Arturo Mejia 2022-01-31 16:40:00 -05:00 committed by mergify[bot]
parent eb9fc799ee
commit 1931e5dd64
2 changed files with 4 additions and 0 deletions

View File

@ -765,6 +765,8 @@ class HomeFragment : Fragment() {
} }
if (shouldEnableWallpaper() && context.settings().wallpapersSwitchedByLogoTap) { if (shouldEnableWallpaper() && context.settings().wallpapersSwitchedByLogoTap) {
binding.wordmark.contentDescription =
context.getString(R.string.wallpaper_logo_content_description)
binding.wordmark.setOnClickListener { binding.wordmark.setOnClickListener {
val manager = requireComponents.wallpaperManager val manager = requireComponents.wallpaperManager
val newWallpaper = manager.switchToNextWallpaper() val newWallpaper = manager.switchToNextWallpaper()

View File

@ -468,6 +468,8 @@
<string name="wallpaper_tap_to_change_switch_label">Tap logo to change wallpaper</string> <string name="wallpaper_tap_to_change_switch_label">Tap logo to change wallpaper</string>
<!-- Description for switch which toggles the "tap-to-switch" behavior on home screen logo --> <!-- Description for switch which toggles the "tap-to-switch" behavior on home screen logo -->
<string name="wallpaper_tap_to_change_switch_description">Cycle through and update image without leaving the homepage.</string> <string name="wallpaper_tap_to_change_switch_description">Cycle through and update image without leaving the homepage.</string>
<!-- Content description for switch which toggles the "tap-to-switch" behavior on home screen logo -->
<string name="wallpaper_logo_content_description">Firefox logo - change the wallpaper, button</string>
<!-- Add-on Installation from AMO--> <!-- Add-on Installation from AMO-->
<!-- Error displayed when user attempts to install an add-on from AMO (addons.mozilla.org) that is not supported --> <!-- Error displayed when user attempts to install an add-on from AMO (addons.mozilla.org) that is not supported -->