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

Commit 673f9345 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Catch SQLiteException while delete()" am: 220dbdd5

parents 874ec673 220dbdd5
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() {