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

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

Merge "Bluetooth: Map: Validate BT Adapter before starting rfcomm listener"

parents 7bd0b871 5f386cc5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -335,8 +335,12 @@ public class BluetoothMapService extends ProfileService {
        mConnectionManager.init();
        mAdapter = BluetoothAdapter.getDefaultAdapter();
        // start RFCOMM listener
        if(mAdapter ==null) {
          Log.w(TAG,"Local BT device is not enabled");
        } else {
        mSessionStatusHandler.sendMessage(mSessionStatusHandler
                .obtainMessage(START_LISTENER));
        }
        return true;
    }