Update ContentDescriptions for QK Reply and nav drawer

This commit is contained in:
Moez Bhatti
2018-06-19 12:59:03 -04:00
parent 55c208d443
commit e30783b807
4 changed files with 4 additions and 2 deletions
@@ -96,7 +96,7 @@ class MainActivity : QkThemedActivity(), MainView {
override val backPressedIntent: Subject<Unit> = PublishSubject.create()
private val viewModel by lazy { ViewModelProviders.of(this, viewModelFactory)[MainViewModel::class.java] }
private val toggle by lazy { ActionBarDrawerToggle(this, drawerLayout, toolbar, 0, 0) }
private val toggle by lazy { ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.main_drawer_open_cd, 0) }
private val itemTouchHelper by lazy { ItemTouchHelper(itemTouchCallback) }
private val archiveSnackbar by lazy {
Snackbar.make(drawerLayout, R.string.toast_archived, Snackbar.LENGTH_INDEFINITE).apply {
@@ -110,6 +110,7 @@ class QkReplyActivity : QkThemedActivity(), QkReplyView {
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