From 538e2626c655f885d961077768114e81cdcfc2ec Mon Sep 17 00:00:00 2001 From: Aaron Veil <70171475+anddea@users.noreply.github.com> Date: Thu, 4 Jul 2024 16:55:13 +0300 Subject: [PATCH] feat(YouTube): Add content descriptions to improve accessibility --- .../app/revanced/integrations/youtube/whitelist/Whitelist.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/app/revanced/integrations/youtube/whitelist/Whitelist.java b/app/src/main/java/app/revanced/integrations/youtube/whitelist/Whitelist.java index 70e7518efa..3dcfc2be1f 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/whitelist/Whitelist.java +++ b/app/src/main/java/app/revanced/integrations/youtube/whitelist/Whitelist.java @@ -121,10 +121,12 @@ public static void showWhitelistDialog(Context context) { if (sponsorBlockButton != null && sponsorBlockDrawable != null) { sponsorBlockDrawable.setColorFilter(cf); sponsorBlockButton.setCompoundDrawablesWithIntrinsicBounds(null, null, sponsorBlockDrawable, null); + sponsorBlockButton.setContentDescription(str("revanced_whitelist_sponsor_block")); } if (playbackSpeedButton != null && playbackSpeedDrawable != null) { playbackSpeedDrawable.setColorFilter(cf); playbackSpeedButton.setCompoundDrawablesWithIntrinsicBounds(playbackSpeedDrawable, null, null, null); + playbackSpeedButton.setContentDescription(str("revanced_whitelist_playback_speed")); } }