diff --git a/data/src/main/java/compat/SubscriptionInfoCompat.kt b/data/src/main/java/compat/SubscriptionInfoCompat.kt index 7cce63f3..08369c53 100644 --- a/data/src/main/java/compat/SubscriptionInfoCompat.kt +++ b/data/src/main/java/compat/SubscriptionInfoCompat.kt @@ -29,4 +29,6 @@ data class SubscriptionInfoCompat(private val subscriptionInfo: SubscriptionInfo val simSlotIndex get() = subscriptionInfo.simSlotIndex + val displayName get() = subscriptionInfo.displayName + } \ No newline at end of file diff --git a/presentation/src/main/java/feature/compose/ComposeActivity.kt b/presentation/src/main/java/feature/compose/ComposeActivity.kt index dd8e445a..162931b6 100644 --- a/presentation/src/main/java/feature/compose/ComposeActivity.kt +++ b/presentation/src/main/java/feature/compose/ComposeActivity.kt @@ -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 diff --git a/presentation/src/main/res/layout/compose_activity.xml b/presentation/src/main/res/layout/compose_activity.xml index d1eafca1..2c7f985e 100644 --- a/presentation/src/main/res/layout/compose_activity.xml +++ b/presentation/src/main/res/layout/compose_activity.xml @@ -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" diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml index eadabd0d..1014244d 100644 --- a/presentation/src/main/res/values/strings.xml +++ b/presentation/src/main/res/values/strings.xml @@ -110,6 +110,7 @@ Add an attachment Attach a photo Take a photo + %s selected, change SIM card Send message Sending…