Check for whether fingerprint can be used in work challenge moved
from onCreate() to onResume() Test: manual Bug: 29825955 Change-Id: Id01a21fecf395ba29858e099947eeb83a4cee8fc
This commit is contained in:
@@ -90,9 +90,6 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends OptionsMenuFra
|
|||||||
final UserManager userManager = UserManager.get(getActivity());
|
final UserManager userManager = UserManager.get(getActivity());
|
||||||
mEffectiveUserId = userManager.getCredentialOwnerProfile(mUserId);
|
mEffectiveUserId = userManager.getCredentialOwnerProfile(mUserId);
|
||||||
mLockPatternUtils = new LockPatternUtils(getActivity());
|
mLockPatternUtils = new LockPatternUtils(getActivity());
|
||||||
mIsStrongAuthRequired = isFingerprintDisallowedByStrongAuth();
|
|
||||||
mAllowFpAuthentication = mAllowFpAuthentication && !isFingerprintDisabledByAdmin()
|
|
||||||
&& !mReturnCredentials && !mIsStrongAuthRequired;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -141,6 +138,10 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends OptionsMenuFra
|
|||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
mIsStrongAuthRequired = isFingerprintDisallowedByStrongAuth();
|
||||||
|
mAllowFpAuthentication = getActivity().getIntent().getBooleanExtra(
|
||||||
|
ALLOW_FP_AUTHENTICATION, false)
|
||||||
|
&& !isFingerprintDisabledByAdmin() && !mReturnCredentials && !mIsStrongAuthRequired;
|
||||||
refreshLockScreen();
|
refreshLockScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user