Merge "Redirect to the right combined biometrics in work profile." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
37dad2b3d4
@@ -132,6 +132,19 @@ public class CombinedBiometricStatusUtils {
|
|||||||
return mFaceManager != null && mFaceManager.hasEnrolledTemplates(mUserId);
|
return mFaceManager != null && mFaceManager.hasEnrolledTemplates(mUserId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the class name of the Settings page corresponding to combined biometric settings
|
||||||
|
* based on the current user.
|
||||||
|
*/
|
||||||
|
public String getSettingsClassNameBasedOnUser() {
|
||||||
|
UserManager userManager = mContext.getSystemService(UserManager.class);
|
||||||
|
if (userManager != null && userManager.isProfile()) {
|
||||||
|
return getProfileSettingsClassName();
|
||||||
|
} else {
|
||||||
|
return getSettingsClassName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the class name of the Settings page corresponding to combined biometric settings.
|
* Returns the class name of the Settings page corresponding to combined biometric settings.
|
||||||
*/
|
*/
|
||||||
|
@@ -85,7 +85,7 @@ public final class BiometricsSafetySource {
|
|||||||
combinedBiometricStatusUtils.getSummary(),
|
combinedBiometricStatusUtils.getSummary(),
|
||||||
createPendingIntent(context,
|
createPendingIntent(context,
|
||||||
biometricNavigationUtils.getBiometricSettingsIntent(context,
|
biometricNavigationUtils.getBiometricSettingsIntent(context,
|
||||||
combinedBiometricStatusUtils.getSettingsClassName(),
|
combinedBiometricStatusUtils.getSettingsClassNameBasedOnUser(),
|
||||||
disablingAdmin, Bundle.EMPTY),
|
disablingAdmin, Bundle.EMPTY),
|
||||||
REQUEST_CODE_COMBINED_BIOMETRIC_SETTING),
|
REQUEST_CODE_COMBINED_BIOMETRIC_SETTING),
|
||||||
disablingAdmin == null /* enabled */,
|
disablingAdmin == null /* enabled */,
|
||||||
|
Reference in New Issue
Block a user