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

Commit 1ca19f74 authored by Arthur Hsu's avatar Arthur Hsu Committed by android-build-merger
Browse files

Merge "Correctly handle GATT as only profile supported."

am: a4397ddc

Change-Id: I8df10e1572db12eda284ab1db42daee86c241dea
parents 22e37239 a4397ddc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -575,7 +575,9 @@ public class AdapterService extends Service {
        Class[] supportedProfileServices = Config.getSupportedProfiles();

        //Start profile services
        if (!mProfilesStarted && supportedProfileServices.length > 0) {
        if (!mProfilesStarted && supportedProfileServices.length > 0
                && !(supportedProfileServices.length == 1
                     && supportedProfileServices[0] == GattService.class)) {
            //Startup all profile services
            setProfileServiceState(supportedProfileServices, BluetoothAdapter.STATE_ON);
        } else {