Combined biometric settings implementation
There will be multiple biometrics authentications existing at the same time, so we added a new page for multiple biometrics to control biometrics settings. Bug: 183449119 Test: manual test Change-Id: I359082caf771e07dfd5b24973cb8a3cf372c1b30
This commit is contained in:
@@ -26,6 +26,7 @@ import android.provider.Settings;
|
||||
import androidx.preference.Preference;
|
||||
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
import com.android.settingslib.RestrictedSwitchPreference;
|
||||
|
||||
@@ -82,6 +83,11 @@ public class FaceSettingsLockscreenBypassPreferenceController
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
// When the device supports multiple biometrics auth, this preference will be shown
|
||||
// in face unlock category.
|
||||
if (Utils.isMultipleBiometricsSupported(mContext)) {
|
||||
return AVAILABLE;
|
||||
}
|
||||
if (mUserManager.isManagedProfile(UserHandle.myUserId())) {
|
||||
return UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user