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

Commit cb8fd7c4 authored by Palash Ahuja's avatar Palash Ahuja Committed by Gerrit Code Review
Browse files

Merge "Add check for AdapterService being enabled before connecting profiles" into main

parents 7424113f 636f4a9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2859,7 +2859,7 @@ public class AdapterService extends Service {
        @Override
        public int connectAllEnabledProfiles(BluetoothDevice device, AttributionSource source) {
            AdapterService service = getService();
            if (service == null) {
            if (service == null || !service.isEnabled()) {
                return BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED;
            }
            if (!callerIsSystemOrActiveOrManagedUser(service, TAG, "connectAllEnabledProfiles")) {