Add support for Biometrics for work Source for SC
Fixes: b/266818876 Fixes: b/238870897 Test: manually tested Change-Id: I674b89226c445399dea69e4355b124f376e7f38d
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.Context;
|
||||
import android.hardware.biometrics.BiometricAuthenticator;
|
||||
import android.hardware.face.FaceManager;
|
||||
import android.hardware.fingerprint.FingerprintManager;
|
||||
import android.os.UserManager;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
@@ -86,6 +87,18 @@ public class CombinedBiometricStatusUtils {
|
||||
return faceConsentRequired && fpConsentRequired ? faceAdmin : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the title of combined biometric settings entity.
|
||||
*/
|
||||
public String getTitle() {
|
||||
UserManager userManager = mContext.getSystemService(UserManager.class);
|
||||
if (userManager != null && userManager.isProfile()) {
|
||||
return mContext.getString(R.string.security_settings_work_biometric_preference_title);
|
||||
} else {
|
||||
return mContext.getString(R.string.security_settings_biometric_preference_title);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the summary of combined biometric settings entity.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user