Announce played/unplayed in TalkBack (#6744)

This commit is contained in:
ByteHamster 2023-11-05 15:31:07 +01:00 committed by GitHub
parent f7a13065a9
commit 1d415c9f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -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);

View File

@ -686,9 +686,10 @@
<string name="decrease_speed">Decrease speed</string>
<string name="media_type_video_label">Video</string>
<string name="status_downloading_label">Episode is being downloaded</string>
<string name="in_queue_label">Episode is in the queue</string>
<string name="is_favorite_label">Episode is marked as favorite</string>
<string name="is_inbox_label">Episode is in the inbox</string>
<string name="in_queue_label">In the queue</string>
<string name="is_favorite_label">Marked as favorite</string>
<string name="is_inbox_label">In the inbox</string>
<string name="is_played">Played</string>
<string name="load_next_page_label">Load next page</string>
<string name="position">Position: %1$s</string>
<string name="remaining_time">Remaining time: %1$s</string>