From 345d423aa54780943d1453d7676afaf6f6ff555c Mon Sep 17 00:00:00 2001 From: Yunfan Chen Date: Wed, 25 Dec 2024 14:48:42 +0900 Subject: Add accessibility title to the immersive dialog The immersive confirmation dialog currently doesn't have a accessibility title. This will lead to a bad UX. Add meaningful a11y title to the window. Test: adb shell dumpsys accessibility Bug: 384643088 Flag: EXEMPT bugfix Change-Id: I2b70bbead174d3c64c7111113e17dfae931e72ed --- .../src/com/android/systemui/statusbar/ImmersiveModeConfirmation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ImmersiveModeConfirmation.java b/packages/SystemUI/src/com/android/systemui/statusbar/ImmersiveModeConfirmation.java index 5ef5a7d2139c..af51c49204bb 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ImmersiveModeConfirmation.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ImmersiveModeConfirmation.java @@ -284,6 +284,7 @@ public class ImmersiveModeConfirmation implements CoreStartable, CommandQueue.Ca | WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY | WindowManager.LayoutParams.PRIVATE_FLAG_IMMERSIVE_CONFIRMATION_WINDOW; lp.setTitle("ImmersiveModeConfirmation"); + lp.accessibilityTitle = mSysUiContext.getString(R.string.immersive_cling_title); lp.windowAnimations = com.android.internal.R.style.Animation_ImmersiveModeConfirmation; lp.token = getWindowToken(); return lp; -- cgit v1.2.3-59-g8ed1b