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

Commit b24dffcf authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Ensure the getCredentialType cache gets enabled am: 1ba0f668

parents 6fc3f873 1ba0f668
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1008,7 +1008,7 @@ public class LockPatternUtils {
                    CREDENTIAL_TYPE_API, CREDENTIAL_TYPE_API, mCredentialTypeQuery);

    /**
     * Invalidate the credential cache
     * Invalidate the credential type cache
     * @hide
     */
    public final static void invalidateCredentialTypeCache() {
+4 −0
Original line number Diff line number Diff line
@@ -842,6 +842,10 @@ public class LockSettingsService extends ILockSettings.Stub {
        getAuthSecretHal();
        mDeviceProvisionedObserver.onSystemReady();

        // Work around an issue in PropertyInvalidatedCache where the cache doesn't work until the
        // first invalidation.  This can be removed if PropertyInvalidatedCache is fixed.
        LockPatternUtils.invalidateCredentialTypeCache();

        // TODO: maybe skip this for split system user mode.
        mStorage.prefetchUser(UserHandle.USER_SYSTEM);
        mBiometricDeferredQueue.systemReady(mInjector.getFingerprintManager(),