diff --git a/vector/src/main/java/im/vector/app/features/settings/push/PushRuleItem.kt b/vector/src/main/java/im/vector/app/features/settings/push/PushRuleItem.kt index 0144b162e9..332033d10e 100644 --- a/vector/src/main/java/im/vector/app/features/settings/push/PushRuleItem.kt +++ b/vector/src/main/java/im/vector/app/features/settings/push/PushRuleItem.kt @@ -59,10 +59,13 @@ abstract class PushRuleItem : EpoxyModelWithHolder() { if (notifAction.shouldNotify && !notifAction.soundName.isNullOrBlank()) { holder.actionIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_notify_noisy)) + holder.actionIcon.contentDescription = context.getString(R.string.a11y_rule_notify_noisy) } else if (notifAction.shouldNotify) { holder.actionIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_notify_silent)) + holder.actionIcon.contentDescription = context.getString(R.string.a11y_rule_notify_silent) } else { holder.actionIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_dont_notify)) + holder.actionIcon.contentDescription = context.getString(R.string.a11y_rule_notify_off) } val description = StringBuffer() diff --git a/vector/src/main/res/layout/item_pushrule_raw.xml b/vector/src/main/res/layout/item_pushrule_raw.xml index 7a29415f2e..bc1734e4fd 100644 --- a/vector/src/main/res/layout/item_pushrule_raw.xml +++ b/vector/src/main/res/layout/item_pushrule_raw.xml @@ -37,6 +37,7 @@ android:layout_width="30dp" android:layout_height="30dp" android:layout_gravity="center_vertical" + android:contentDescription="@string/a11y_rule_notify_off" tools:src="@drawable/ic_action_dont_notify" /> \ No newline at end of file diff --git a/vector/src/main/res/layout/item_timeline_event_file_stub.xml b/vector/src/main/res/layout/item_timeline_event_file_stub.xml index 72a6cd6ec6..6df0c02cae 100644 --- a/vector/src/main/res/layout/item_timeline_event_file_stub.xml +++ b/vector/src/main/res/layout/item_timeline_event_file_stub.xml @@ -8,7 +8,7 @@ android:paddingTop="8dp" android:paddingBottom="8dp"> - Close Emoji picker Checked Message not sent due to error + Notify with sound + Notify without sound + Do not notify