Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37dad2b3 authored by Elliot Sisteron's avatar Elliot Sisteron Committed by Android (Google) Code Review
Browse files

Merge "Redirect to the right combined biometrics in work profile." into udc-dev

parents 7c1f28d0 6a1ec755
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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.
     */
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ public final class BiometricsSafetySource {
                    combinedBiometricStatusUtils.getSummary(),
                    createPendingIntent(context,
                            biometricNavigationUtils.getBiometricSettingsIntent(context,
                                    combinedBiometricStatusUtils.getSettingsClassName(),
                                    combinedBiometricStatusUtils.getSettingsClassNameBasedOnUser(),
                                    disablingAdmin, Bundle.EMPTY),
                            REQUEST_CODE_COMBINED_BIOMETRIC_SETTING),
                    disablingAdmin == null /* enabled */,