Fix a11y read-twice bug am: e50aa221bc

am: efd3800510

Change-Id: I664d56e7e26f9b9db9a5abb2c4b5d370bd357603
This commit is contained in:
Julia Reynolds
2019-05-31 12:52:00 -07:00
committed by android-build-merger
2 changed files with 3 additions and 1 deletions

View File

@@ -223,6 +223,8 @@ class ChannelEditorDialogController @Inject constructor(
dialog = Dialog(context)
dialog.window?.requestFeature(Window.FEATURE_NO_TITLE)
// Prevent a11y readers from reading the first element in the dialog twice
dialog.setTitle("\u00A0")
dialog.apply {
setContentView(R.layout.notif_half_shelf)
setCanceledOnTouchOutside(true)

View File

@@ -143,7 +143,7 @@ class ChannelRow(c: Context, attrs: AttributeSet) : LinearLayout(c, attrs) {
private fun updateViews() {
val nc = channel ?: return
channelName.text = nc.name ?: "(missing)"
channelName.text = nc.name ?: ""
nc.group?.let { groupId ->
channelDescription.text = controller.groupNameForId(groupId)