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

Commit a4397ddc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Correctly handle GATT as only profile supported."

parents 76903569 25b694bf
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 {