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

Commit d251fba2 authored by PauloftheWest's avatar PauloftheWest Committed by Android (Google) Code Review
Browse files

Merge "Fixed a Bluetooth Scanning issue." into lmp-dev

parents 23d8742d 637f1b4e
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -230,10 +230,19 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
    }

    private void startScanning() {
        if (isUiRestricted()) return;
        if (isUiRestricted()) {
            return;
        }

        if (!mAvailableDevicesCategoryIsPresent) {
            getPreferenceScreen().addPreference(mAvailableDevicesCategory);
        }

        if (mAvailableDevicesCategory != null) {
            setDeviceListGroup(mAvailableDevicesCategory);
            removeAllDevices();
        }

        mLocalManager.getCachedDeviceManager().clearCachedDevices();
        mAvailableDevicesCategory.removeAll();
        mLocalAdapter.startScanning(true);