Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efd38005 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Fix a11y read-twice bug

am: e50aa221

Change-Id: Ib520ba120083f823900156a9267a3d4d8ff5dbc6
parents 7979e0e2 e50aa221
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)