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

Commit fae31935 authored by joshmccloskey's avatar joshmccloskey Committed by Joshua Mccloskey
Browse files

Add extra check for accessibility flow.

Bug: 138197084
Test: Verified other accessibility features like Live Transcribe does
not bring the user to the accessibility flow.
Test: Verified that the Sound Amplifier does not bring the user to
the accessibility flow.

Change-Id: I5131d74926c0b01c565da280c55afe0080855688
parent 6e57d54d
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -134,7 +134,10 @@ public class FaceEnrollEducation extends BiometricEnrollBase {
        final AccessibilityManager accessibilityManager = getApplicationContext().getSystemService(
        final AccessibilityManager accessibilityManager = getApplicationContext().getSystemService(
                AccessibilityManager.class);
                AccessibilityManager.class);
        if (accessibilityManager != null) {
        if (accessibilityManager != null) {
            accessibilityEnabled = accessibilityManager.isEnabled();
            // Add additional check for touch exploration. This prevents other accessibility
            // features such as Live Transcribe from defaulting to the accessibility setup.
            accessibilityEnabled = accessibilityManager.isEnabled()
                    && accessibilityManager.isTouchExplorationEnabled();
        }
        }
        mFooterBarMixin.setPrimaryButton(footerButton);
        mFooterBarMixin.setPrimaryButton(footerButton);
        final Context context = getApplicationContext();
        final Context context = getApplicationContext();