a11y
This commit is contained in:
parent
e7a29857c5
commit
3bf1e48236
|
@ -59,10 +59,13 @@ abstract class PushRuleItem : EpoxyModelWithHolder<PushRuleItem.Holder>() {
|
||||||
|
|
||||||
if (notifAction.shouldNotify && !notifAction.soundName.isNullOrBlank()) {
|
if (notifAction.shouldNotify && !notifAction.soundName.isNullOrBlank()) {
|
||||||
holder.actionIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_notify_noisy))
|
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) {
|
} else if (notifAction.shouldNotify) {
|
||||||
holder.actionIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_notify_silent))
|
holder.actionIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_notify_silent))
|
||||||
|
holder.actionIcon.contentDescription = context.getString(R.string.a11y_rule_notify_silent)
|
||||||
} else {
|
} else {
|
||||||
holder.actionIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_dont_notify))
|
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()
|
val description = StringBuffer()
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
android:contentDescription="@string/a11y_rule_notify_off"
|
||||||
tools:src="@drawable/ic_action_dont_notify" />
|
tools:src="@drawable/ic_action_dont_notify" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -8,7 +8,7 @@
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:paddingBottom="8dp">
|
android:paddingBottom="8dp">
|
||||||
|
|
||||||
<ImageView
|
<im.vector.app.core.ui.views.ShieldImageView
|
||||||
android:id="@+id/messageFilee2eIcon"
|
android:id="@+id/messageFilee2eIcon"
|
||||||
android:layout_width="14dp"
|
android:layout_width="14dp"
|
||||||
android:layout_height="14dp"
|
android:layout_height="14dp"
|
||||||
|
|
|
@ -2847,4 +2847,7 @@
|
||||||
<string name="a11y_close_emoji_picker">Close Emoji picker</string>
|
<string name="a11y_close_emoji_picker">Close Emoji picker</string>
|
||||||
<string name="a11y_checked">Checked</string>
|
<string name="a11y_checked">Checked</string>
|
||||||
<string name="a11y_error_message_not_sent">Message not sent due to error</string>
|
<string name="a11y_error_message_not_sent">Message not sent due to error</string>
|
||||||
|
<string name="a11y_rule_notify_noisy">Notify with sound</string>
|
||||||
|
<string name="a11y_rule_notify_silent">Notify without sound</string>
|
||||||
|
<string name="a11y_rule_notify_off">Do not notify</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue