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

Commit e5b82e0b authored by AnilKumar Chimata's avatar AnilKumar Chimata Committed by Rashed Abdel-Tawab
Browse files

frameworks/base: Fix password/PIN/pattern update issue

Fix password/PIN/pattern update issue from the current string.
During upmerge this change is not properly merged.

Change-Id: I0d6bb75ed66ca89b2f169d2b7322d9f4cb74da44
parent 357c5168
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -1285,7 +1285,10 @@ public class LockSettingsService extends ILockSettings.Stub {
    @Override
    public VerifyCredentialResponse checkPattern(String pattern, int userId,
            ICheckCredentialProgressCallback progressCallback) throws RemoteException {
        return doVerifyPattern(pattern, false, 0, userId, progressCallback);
        VerifyCredentialResponse response = doVerifyPattern(pattern, false, 0, userId, progressCallback);
        if (response.getResponseCode() == VerifyCredentialResponse.RESPONSE_OK)
            retainPassword(pattern);
        return response;
    }

    @Override
@@ -1358,7 +1361,10 @@ public class LockSettingsService extends ILockSettings.Stub {
    @Override
    public VerifyCredentialResponse checkPassword(String password, int userId,
            ICheckCredentialProgressCallback progressCallback) throws RemoteException {
        return doVerifyPassword(password, false, 0, userId, progressCallback);
        VerifyCredentialResponse response = doVerifyPassword(password, false, 0, userId, progressCallback);
        if (response.getResponseCode() == VerifyCredentialResponse.RESPONSE_OK)
            retainPassword(password);
        return response;
    }

    @Override