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

Commit e07c649e authored by mrulhania's avatar mrulhania
Browse files

Handle sqlite failure when inserting discrete ops

Bug: 389050217
Test: build
FLAG: EXEMPT bug fix
Change-Id: Ib33a4aa9f262a31d75d777d3085bc84522e5f498
parent a270408a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -110,7 +110,12 @@ class DiscreteOpsDbHelper extends SQLiteOpenHelper {
            }
            db.setTransactionSuccessful();
        } finally {
            try {
                db.endTransaction();
            } catch (SQLiteException exception) {
                Slog.e(LOG_TAG, "Couldn't commit transaction when inserting discrete ops, database"
                        + " file size (bytes) : " + getDatabaseFile().length(), exception);
            }
        }
    }