diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-12-06 21:26:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 21:26:49 +0100 |
commit | 3852d50f925b5ef59a66285d4c4d930d4dbe2bdf (patch) | |
tree | db73f3deabe89f2d66a67e7ca2981004982e1120 /app/src/main | |
parent | ae4205c6d337644ebead973e9f091fe2498b8450 (diff) | |
download | AntennaPod-3852d50f925b5ef59a66285d4c4d930d4dbe2bdf.zip |
Fix 'played' state on TalkBack when cover is hidden (#6796)
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java | 10 |
1 files changed, 4 insertions, 6 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 b4f61a19a..01d4a10f0 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 @@ -100,15 +100,13 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder { this.item = item; placeholder.setText(item.getFeed().getTitle()); title.setText(item.getTitle()); - 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); + leftPadding.setContentDescription(item.getTitle() + ". " + activity.getString(R.string.is_played)); } else { - cover.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); + leftPadding.setContentDescription(item.getTitle()); } + pubDate.setText(DateFormatter.formatAbbrev(activity, item.getPubDate())); + pubDate.setContentDescription(DateFormatter.formatForAccessibility(item.getPubDate())); 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); |