diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-10-22 13:14:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 13:14:36 +0200 |
commit | 0b7403e1ddd9d1ef2910d4ffabfb377fe3b11b3c (patch) | |
tree | ecb8b5cea9f2c987c9c7b8fea8a7a04df193268a /app/src/main/java/de/danoeh | |
parent | 61669d32fabb4f371373cc7210efd159e181ae30 (diff) | |
download | AntennaPod-0b7403e1ddd9d1ef2910d4ffabfb377fe3b11b3c.zip |
Some more accessibility tweaks (#6713)
Diffstat (limited to 'app/src/main/java/de/danoeh')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java index e5aac5fa5..f2a53ab7e 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java @@ -375,10 +375,16 @@ public class AudioPlayerFragment extends Fragment implements return; } txtvPosition.setText(Converter.getDurationStringLong(currentPosition)); + txtvPosition.setContentDescription(getString(R.string.position, + Converter.getDurationStringLocalized(getContext(), currentPosition))); showTimeLeft = UserPreferences.shouldShowRemainingTime(); if (showTimeLeft) { + txtvLength.setContentDescription(getString(R.string.remaining_time, + Converter.getDurationStringLocalized(getContext(), remainingTime))); txtvLength.setText(((remainingTime > 0) ? "-" : "") + Converter.getDurationStringLong(remainingTime)); } else { + txtvLength.setContentDescription(getString(R.string.chapter_duration, + Converter.getDurationStringLocalized(getContext(), duration))); txtvLength.setText(Converter.getDurationStringLong(duration)); } |