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

Commit 15538e7d authored by Hawkwood's avatar Hawkwood
Browse files

Set null content description for inner large clock views

Bug: 419129297
Test: Checked function of talkback on large clock
Flag: com.android.systemui.shared.clock_reactive_variants
Change-Id: I83780398755f96f5d13159fe38a6a10fa7f57d75
parent f8f50709
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.systemui.shared.clocks

import android.graphics.Rect
import android.icu.util.TimeZone
import android.view.View
import android.view.ViewGroup
import android.view.animation.Interpolator
import android.widget.RelativeLayout
@@ -192,8 +193,13 @@ open class SimpleDigitalHandLayerController(
        object : ClockFaceEvents {
            override fun onTimeTick() {
                refreshTime()
                if (layerCfg.timespec == DigitalTimespec.TIME_FULL_FORMAT) {

                view.contentDescription = timespec.getContentDescription()
                view.importantForAccessibility =
                    if (view.contentDescription == null) {
                        View.IMPORTANT_FOR_ACCESSIBILITY_NO
                    } else {
                        View.IMPORTANT_FOR_ACCESSIBILITY_YES
                    }
            }