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

Commit afe91857 authored by Ömer Faruk Yılmaz's avatar Ömer Faruk Yılmaz Committed by Android (Google) Code Review
Browse files

Merge "Revert "OPP: Do not trimDatabase if ContentProvider doesn't exist"" into tm-qpr-dev

parents 8eee9afe 3da9b6f6
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1115,11 +1115,6 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti

    // Run in a background thread at boot.
    private static void trimDatabase(ContentResolver contentResolver) {
        if (contentResolver.acquireContentProviderClient(BluetoothShare.CONTENT_URI) == null) {
            Log.w(TAG, "ContentProvider doesn't exist");
            return;
        }

        // remove the invisible/unconfirmed inbound shares
        int delNum = contentResolver.delete(BluetoothShare.CONTENT_URI, WHERE_INVISIBLE_UNCONFIRMED,
                null);