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

Commit dcdf0c5e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Adds check to verify Bluetooth adapter state"

parents a7f2aab9 dee4575b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1734,6 +1734,7 @@ public final class BluetoothAdapter {
     */
    @Deprecated
    public boolean startLeScan(LeScanCallback callback) {
        if (getState() != STATE_ON) return false;
        return startLeScan(null, callback);
    }

@@ -1841,6 +1842,7 @@ public final class BluetoothAdapter {
    @Deprecated
    public void stopLeScan(LeScanCallback callback) {
        if (DBG) Log.d(TAG, "stopLeScan()");
        if (getState() != STATE_ON) return;
        BluetoothLeScanner scanner = getBluetoothLeScanner();
        if (scanner == null) {
            return;