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

Commit 524f4979 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensure settings maintains its Bluetooth device inquiry state" into sc-dev

parents 59b82fad 0b365c3e
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -229,15 +229,19 @@ public abstract class DeviceListPreferenceFragment extends
    @VisibleForTesting
    void enableScanning() {
        // BluetoothAdapter already handles repeated scan requests
        if (!mScanEnabled) {
            startScanning();
            mScanEnabled = true;
        }
    }

    @VisibleForTesting
    void disableScanning() {
        if (mScanEnabled) {
            stopScanning();
            mScanEnabled = false;
        }
    }

    @Override
    public void onScanningStateChanged(boolean started) {