This commit is contained in:
Benoit Marty 2021-02-12 20:08:14 +01:00
parent e7a29857c5
commit 3bf1e48236
4 changed files with 8 additions and 1 deletions

View File

@ -59,10 +59,13 @@ abstract class PushRuleItem : EpoxyModelWithHolder<PushRuleItem.Holder>() {
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()

View File

@ -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" />
</LinearLayout>

View File

@ -8,7 +8,7 @@
android:paddingTop="8dp"
android:paddingBottom="8dp">
<ImageView
<im.vector.app.core.ui.views.ShieldImageView
android:id="@+id/messageFilee2eIcon"
android:layout_width="14dp"
android:layout_height="14dp"

View File

@ -2847,4 +2847,7 @@
<string name="a11y_close_emoji_picker">Close Emoji picker</string>
<string name="a11y_checked">Checked</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>