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

Commit 1b8e58f0 authored by Chienyuan's avatar Chienyuan
Browse files

Add SapProfile to LocalBluetoothProfileManager (2/2)

* add null check for SapService.disconnect()

Bug: 116281023
Test: build pass
Change-Id: I2bb3d445cf08f9b64ac4e2af357d890346f5c7fd
Merged-In: I2bb3d445cf08f9b64ac4e2af357d890346f5c7fd
parent 3a53e3dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ public class SapService extends ProfileService {
    public boolean disconnect(BluetoothDevice device) {
        boolean result = false;
        synchronized (SapService.this) {
            if (getRemoteDevice().equals(device)) {
            if (mRemoteDevice != null && mRemoteDevice.equals(device)) {
                switch (mState) {
                    case BluetoothSap.STATE_CONNECTED:
                        closeConnectionSocket();