diff --git a/res/xml/security_settings_face.xml b/res/xml/security_settings_face.xml index 4529a019c88..1f5fd57a9e3 100644 --- a/res/xml/security_settings_face.xml +++ b/res/xml/security_settings_face.xml @@ -63,7 +63,7 @@ android:title="@string/lockscreen_bypass_title" android:summary="@string/lockscreen_bypass_summary" settings:keywords="@string/keywords_lockscreen_bypass" - settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" /> + settings:controller="com.android.settings.biometrics.face.BiometricLockscreenBypassPreferenceController" /> sResultLinks = new ArraySet<>(); private static boolean sIsBatteryPresent; private static boolean sIsPageTransitionEnabled; + private static boolean sIsMultipleBiometricsSupported; @Implementation protected static int enforceSameOwner(Context context, int userId) { @@ -71,6 +72,7 @@ public class ShadowUtils { sResultLinks = new ArraySet<>(); sIsBatteryPresent = true; sIsPageTransitionEnabled = true; + sIsMultipleBiometricsSupported = false; } public static void setIsDemoUser(boolean isDemoUser) { @@ -177,4 +179,13 @@ public class ShadowUtils { public static void setIsPageTransitionEnabled(boolean isPageTransitionEnabled) { sIsPageTransitionEnabled = isPageTransitionEnabled; } + + @Implementation + protected static boolean isMultipleBiometricsSupported(Context context) { + return sIsMultipleBiometricsSupported; + } + + public static void setIsMultipleBiometricsSupported(boolean isMultipleBiometricsSupported) { + sIsMultipleBiometricsSupported = isMultipleBiometricsSupported; + } }