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

Commit 9ee9098a authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Gerrit Code Review
Browse files

Merge "LeAudioService: Add better logs" into main

parents e4f92af2 7ef02090
Loading
Loading
Loading
Loading
+19 −3
Original line number Diff line number Diff line
@@ -1325,6 +1325,12 @@ public class LeAudioService extends ProfileService {

            final boolean suppressNoisyIntent = hasFallbackDevice || mActiveAudioOutDevice != null;

            Log.d(
                    TAG,
                    "suppressNoisyIntent: "
                            + suppressNoisyIntent
                            + ", hasFallbackDevice"
                            + hasFallbackDevice);
            final BluetoothProfileConnectionInfo connectionInfo;
            if (isAtLeastU()) {
                connectionInfo =
@@ -1376,9 +1382,16 @@ public class LeAudioService extends ProfileService {

        int currentlyActiveGroupId = getActiveGroupId();
        if (DBG) {
            Log.d(TAG, "setActiveGroupWithDevice = " + groupId
                    + ", currentlyActiveGroupId = " + currentlyActiveGroupId
                    + ", device: " + device);
            Log.d(
                    TAG,
                    "setActiveGroupWithDevice = "
                            + groupId
                            + ", currentlyActiveGroupId = "
                            + currentlyActiveGroupId
                            + ", device: "
                            + device
                            + ", hasFallbackDevice: "
                            + hasFallbackDevice);
        }

        if (groupId == currentlyActiveGroupId) {
@@ -1411,6 +1424,9 @@ public class LeAudioService extends ProfileService {
     */
    public boolean removeActiveDevice(boolean hasFallbackDevice) {
        /* Clear active group */
        if (DBG) {
            Log.d(TAG, "removeActiveDevice, hasFallbackDevice " + hasFallbackDevice);
        }
        setActiveGroupWithDevice(null, hasFallbackDevice);
        return true;
    }