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

Commit 3da9b6f6 authored by Ömer Faruk Yılmaz's avatar Ömer Faruk Yılmaz
Browse files

Revert "OPP: Do not trimDatabase if ContentProvider doesn't exist"

This reverts commit I215dcc477cdda567feeed9d0d9c39c0a45f1b940

This commit was accidentally added in ag/21002020 and missed in the
revert ag/21690645. Hence, reverting it here.

Ignore-AOSP-First: Does not need to be removed from AOSP
Test: atest BluetoothOppServiceTest
Reason for revert: b/266459454

Change-Id: I5b9e2f8dcd32b902ebd242bfafe115a58e1789a4
parent 89e28b8d
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);