diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-11-05 15:31:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 15:31:07 +0100 |
commit | 1d415c9f7f11a4454448c20e4ce1a17aaf20cbe7 (patch) | |
tree | 50aa748b79400323a19e3788d7af303980d3ce6f /app/src/main/java/de/danoeh | |
parent | f7a13065a9c92ba26d3686aeb18269f2313bd0b6 (diff) | |
download | AntennaPod-1d415c9f7f11a4454448c20e4ce1a17aaf20cbe7.zip |
Announce played/unplayed in TalkBack (#6744)
Diffstat (limited to 'app/src/main/java/de/danoeh')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java index 03df844b1..b4f61a19a 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java +++ b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java @@ -103,6 +103,12 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder { leftPadding.setContentDescription(item.getTitle()); pubDate.setText(DateFormatter.formatAbbrev(activity, item.getPubDate())); pubDate.setContentDescription(DateFormatter.formatForAccessibility(item.getPubDate())); + if (item.isPlayed()) { + cover.setContentDescription(activity.getString(R.string.is_played)); + cover.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); + } else { + cover.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); + } isInbox.setVisibility(item.isNew() ? View.VISIBLE : View.GONE); isFavorite.setVisibility(item.isTagged(FeedItem.TAG_FAVORITE) ? View.VISIBLE : View.GONE); isInQueue.setVisibility(item.isTagged(FeedItem.TAG_QUEUE) ? View.VISIBLE : View.GONE); |