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

Commit bec574dc authored by Rahul Sabnis's avatar Rahul Sabnis Committed by Gerrit Code Review
Browse files

Merge "Ensure settings maintains its Bluetooth device inquiry state"

parents 53f081be 43c3ba86
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) {