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

Commit 1c04fad2 authored by Xiao Ma's avatar Xiao Ma Committed by Gerrit Code Review
Browse files

Merge "Revert "leaudio: Fix removing group descriptors""

parents aa2eb4d5 76f524b0
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -332,6 +332,8 @@ public class LeAudioService extends ProfileService {
            }
        }

        mGroupDescriptors.remove(groupId);

        return true;
    }

@@ -650,16 +652,11 @@ public class LeAudioService extends ProfileService {
            switch (node_status) {
                case LeAudioStackEvent.GROUP_NODE_ADDED:
                    mDeviceGroupIdMap.put(device, group_id);
                    LeAudioGroupDescriptor descriptor = mGroupDescriptors.get(group_id);
                    if (descriptor == null) {
                    mGroupDescriptors.put(group_id, new LeAudioGroupDescriptor());
                    }
                    break;
                case LeAudioStackEvent.GROUP_NODE_REMOVED:
                    mDeviceGroupIdMap.remove(device);
                    if (mDeviceGroupIdMap.containsKey(group_id) == false) {
                    mGroupDescriptors.remove(group_id);
                    }
                    break;
                default:
                    break;