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

Commit fa18829c 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 f7dd8104
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();