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

Commit 9b55a613 authored by Jeff Pu's avatar Jeff Pu Committed by Android (Google) Code Review
Browse files

Merge "A11Y: talkback does not announce biometrci message in AoD" into main

parents 8f6ec057 9e3f6cd5
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -1088,14 +1088,18 @@ public class KeyguardIndicationController {

            if (!TextUtils.equals(mTopIndicationView.getText(), newIndication)) {
                mWakeLock.setAcquired(true);
                mTopIndicationView.switchIndication(newIndication,
                        new KeyguardIndication.Builder()
                final KeyguardIndication.Builder builder = new KeyguardIndication.Builder()
                        .setMessage(newIndication)
                        .setTextColor(ColorStateList.valueOf(
                                useMisalignmentColor
                                        ? mContext.getColor(R.color.misalignment_text_color)
                                                : Color.WHITE))
                                .build(),
                                        : Color.WHITE));
                if (mBiometricMessage != null && newIndication == mBiometricMessage) {
                    builder.setForceAccessibilityLiveRegionAssertive();
                }

                mTopIndicationView.switchIndication(newIndication,
                        builder.build(),
                        true, () -> mWakeLock.setAcquired(false));
            }
            return;