Merge "Remove feature flag for active unlock" into udc-dev

This commit is contained in:
Derek Jedral
2023-05-09 17:17:11 +00:00
committed by Android (Google) Code Review
5 changed files with 6 additions and 81 deletions

View File

@@ -75,7 +75,7 @@ public class ActiveUnlockStatusUtils {
* used.
*/
public boolean useUnlockIntentLayout() {
return isAvailable() && UNLOCK_INTENT_LAYOUT.equals(getFlagState());
return isAvailable();
}
/**
@@ -84,7 +84,7 @@ public class ActiveUnlockStatusUtils {
* should be used.
*/
public boolean useBiometricFailureLayout() {
return isAvailable() && BIOMETRIC_FAILURE_LAYOUT.equals(getFlagState());
return false;
}
/**
@@ -156,10 +156,6 @@ public class ActiveUnlockStatusUtils {
if (!Utils.hasFingerprintHardware(mContext) && !Utils.hasFaceHardware(mContext)) {
return BasePreferenceController.UNSUPPORTED_ON_DEVICE;
}
if (!UNLOCK_INTENT_LAYOUT.equals(getFlagState())
&& !BIOMETRIC_FAILURE_LAYOUT.equals(getFlagState())) {
return BasePreferenceController.CONDITIONALLY_UNAVAILABLE;
}
if (getAuthority() != null && getIntent() != null) {
return BasePreferenceController.AVAILABLE;
}