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

Commit dd7a7101 authored by AnilKumar Chimata's avatar AnilKumar Chimata Committed by Linux Build Service Account
Browse files

frameworks/base: Fix pattern update issue

Fix pattern update issue while changing the user pin/password/
pattern.

Change-Id: Ie7461eef4cc82a1f591a50d094e47c586cc24198
parent da961b4a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1244,7 +1244,10 @@ public class LockSettingsService extends ILockSettings.Stub {

    @Override
    public VerifyCredentialResponse checkPattern(String pattern, int userId) throws RemoteException {
        return doVerifyPattern(pattern, false, 0, userId);
        VerifyCredentialResponse response = doVerifyPattern(pattern, false, 0, userId);
        if (response.getResponseCode() == VerifyCredentialResponse.RESPONSE_OK)
            retainPassword(pattern);
        return response;
    }

    @Override
@@ -1297,8 +1300,6 @@ public class LockSettingsService extends ILockSettings.Stub {
               && shouldReEnrollBaseZero) {
            setLockPatternInternal(pattern, patternToVerify, userId);
       }
       if (response.getResponseCode() == VerifyCredentialResponse.RESPONSE_OK)
           retainPassword(pattern);

       return response;
    }