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
This commit is contained in:
committed by
Joshua Mccloskey
parent
6e57d54d35
commit
fae3193539
@@ -134,7 +134,10 @@ public class FaceEnrollEducation extends BiometricEnrollBase {
|
||||
final AccessibilityManager accessibilityManager = getApplicationContext().getSystemService(
|
||||
AccessibilityManager.class);
|
||||
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);
|
||||
final Context context = getApplicationContext();
|
||||
|
Reference in New Issue
Block a user