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

Commit 35c32db8 authored by Michal Karpinski's avatar Michal Karpinski
Browse files

Check for whether fingerprint can be used in work challenge moved

from onCreate() to onResume()

Test: manual
Bug: 29825955
Change-Id: Id01a21fecf395ba29858e099947eeb83a4cee8fc
parent 60c7f095
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -90,9 +90,6 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends OptionsMenuFra
        final UserManager userManager = UserManager.get(getActivity());
        mEffectiveUserId = userManager.getCredentialOwnerProfile(mUserId);
        mLockPatternUtils = new LockPatternUtils(getActivity());
        mIsStrongAuthRequired = isFingerprintDisallowedByStrongAuth();
        mAllowFpAuthentication = mAllowFpAuthentication && !isFingerprintDisabledByAdmin()
                && !mReturnCredentials && !mIsStrongAuthRequired;
    }

    @Override
@@ -141,6 +138,10 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends OptionsMenuFra
    @Override
    public void onResume() {
        super.onResume();
        mIsStrongAuthRequired = isFingerprintDisallowedByStrongAuth();
        mAllowFpAuthentication = getActivity().getIntent().getBooleanExtra(
                        ALLOW_FP_AUTHENTICATION, false)
                && !isFingerprintDisabledByAdmin() && !mReturnCredentials && !mIsStrongAuthRequired;
        refreshLockScreen();
    }