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

Commit a925accf authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Set null content description for inner large clock views" into main

parents 6f27934e 15538e7d
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
                    }
            }