Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
feat(YouTube): Add content descriptions to improve accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
anddea committed Jul 4, 2024
1 parent 786876c commit 538e262
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}

Expand Down

0 comments on commit 538e262

Please sign in to comment.