Accessibility improvement

Closes #170
pull/171/head
M66B 5 years ago
parent 70ac7374b4
commit 5b91b8ee8d

@ -453,12 +453,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (message.count == 1)
result.add(context.getString(message.unseen > 0 ? R.string.title_accessibility_unseen : R.string.title_accessibility_seen));
else if (message.unseen == message.count)
result.add(context.getResources().getQuantityString(
R.plurals.title_accessibility_all_of_unseen, message.count, message.count));
else if (message.unseen == 0)
result.add(context.getResources().getQuantityString(
R.plurals.title_accessibility_all_of_seen, message.count, message.count));
else
result.add(context.getResources().getQuantityString(
R.plurals.title_accessibility_count_of_seen, message.unseen, message.unseen, message.count));
R.plurals.title_accessibility_count_of_unseen, message.unseen, message.unseen, message.count));
if (ibExpander.getVisibility() == View.VISIBLE) {
result.add(context.getString(expanded ? R.string.title_accessibility_expanded : R.string.title_accessibility_collapsed));

@ -1034,13 +1034,20 @@
<string name="title_accessibility_expanded">Expanded</string>
<string name="title_accessibility_seen">Read</string>
<string name="title_accessibility_unseen">Unread</string>
<plurals name="title_accessibility_count_of_seen">
<item quantity="one"></item>
<item quantity="other">%1$d of %2$d read</item>
<plurals name="title_accessibility_count_of_unseen">
<item quantity="one">%1$d of %2$d unread</item>
<item quantity="other">%1$d of %2$d unread</item>
</plurals>
<plurals name="title_accessibility_all_of_seen">
<item quantity="one"></item>
<item quantity="other">All of %1$d read</item>
<item quantity="other">All %1$d read</item>
</plurals>
<plurals name="title_accessibility_all_of_unseen">
<item quantity="one"></item>
<item quantity="other">All %1$d unread</item>
</plurals>
<string name="title_accessibility_flagged">Starred</string>

Loading…
Cancel
Save