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

Commit 9c887e08 authored by Eric Biggers's avatar Eric Biggers Committed by Gerrit Code Review
Browse files

Merge "LockSettingsStorage: don't ignore insertion exceptions" into main

parents 37826717 a747bb6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ class LockSettingsStorage {
        try {
            db.delete(TABLE, COLUMN_KEY + "=? AND " + COLUMN_USERID + "=?",
                    new String[] {key, Integer.toString(userId)});
            db.insert(TABLE, null, cv);
            db.insertOrThrow(TABLE, null, cv);
            db.setTransactionSuccessful();
            mCache.putKeyValue(key, value, userId);
        } finally {