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

Commit 31d0e270 authored by Andres Morales's avatar Andres Morales Committed by Android (Google) Code Review
Browse files

Merge "[LockSettings] fail hard when there's an error enrolling"

parents 0f6cb32c 2c4a573f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -432,7 +432,7 @@ public class LockSettingsService extends ILockSettings.Stub {
        if (enrolledHandle != null) {
            mStorage.writePatternHash(enrolledHandle, userId);
        } else {
            Slog.e(TAG, "Failed to enroll pattern");
            throw new RemoteException("Failed to enroll pattern");
        }
    }

@@ -460,7 +460,7 @@ public class LockSettingsService extends ILockSettings.Stub {
        if (enrolledHandle != null) {
            mStorage.writePasswordHash(enrolledHandle, userId);
        } else {
            Slog.e(TAG, "Failed to enroll password");
            throw new RemoteException("Failed to enroll password");
        }
    }