Update ContentDescription for SIM selector

This commit is contained in:
Moez Bhatti
2018-06-19 12:33:55 -04:00
parent 52c99faed1
commit 55c208d443
4 changed files with 4 additions and 1 deletions
@@ -29,4 +29,6 @@ data class SubscriptionInfoCompat(private val subscriptionInfo: SubscriptionInfo
val simSlotIndex get() = subscriptionInfo.simSlotIndex
val displayName get() = subscriptionInfo.displayName
}
@@ -217,6 +217,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
counter.setVisible(counter.text.isNotBlank())
sim.setVisible(state.subscription != null)
sim.contentDescription = getString(R.string.compose_sim_cd, state.subscription?.displayName)
simIndex.text = "${state.subscription?.simSlotIndex?.plus(1)}"
send.isEnabled = state.canSend
@@ -207,7 +207,6 @@
android:layout_height="44dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/compose_attach_cd"
android:padding="10dp"
android:src="@drawable/ic_sim_card_black_24dp"
android:tint="?android:attr/textColorSecondary"
@@ -110,6 +110,7 @@
<string name="compose_attach_cd">Add an attachment</string>
<string name="compose_gallery_cd">Attach a photo</string>
<string name="compose_camera_cd">Take a photo</string>
<string name="compose_sim_cd">%s selected, change SIM card</string>
<string name="compose_send_cd">Send message</string>
<string name="message_status_sending">Sending…</string>