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

Commit 345d423a authored by Yunfan Chen's avatar Yunfan Chen
Browse files

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
parent 8de4fa32
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;