Redirect to the right combined biometrics in work profile.

Bug: 277760649
Test: manual
Change-Id: Iab3e46a6964ceb4bf2241560ad7820844f8ae88c
This commit is contained in:
Elliot Sisteron
2023-04-12 10:46:01 +00:00
parent c00fb2efbd
commit 6a1ec7553c
2 changed files with 14 additions and 1 deletions

View File

@@ -132,6 +132,19 @@ public class CombinedBiometricStatusUtils {
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.
*/