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

Commit 220dbdd5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Catch SQLiteException while delete()"

parents 0b4b7f4d 103a6b26
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -3673,8 +3673,13 @@ public class BluetoothMapContentObserver {
    }

    private void removeDeletedMessages() {
        try {
            /* Remove messages from virtual "deleted" folder (thread_id -1) */
            mResolver.delete(Sms.CONTENT_URI, "thread_id = " + DELETED_THREAD_ID, null);
        } catch (SQLiteException e) {
            // TODO: Include this unexpected exception in Bluetooth metrics
            Log.w("SQLite exception while removing deleted messages.", e);
        }
    }

    private PhoneStateListener mPhoneListener = new PhoneStateListener() {