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

Commit 01ef9e2c authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

LeAudioService: Fix possible crash for A2DP devices

Bug: 310320118
Test: atest LeAudioServiceTest
Tag: #feature
Change-Id: Ia2b6360404246462d795d3b5decfdfc6f16649ce
parent c54d8926
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1581,10 +1581,8 @@ public class LeAudioService extends ProfileService {
        }

        if (currentlyActiveGroupId != LE_AUDIO_GROUP_ID_INVALID
                        && groupId != LE_AUDIO_GROUP_ID_INVALID
                || hasFallbackDevice) {
                && (groupId != LE_AUDIO_GROUP_ID_INVALID || hasFallbackDevice)) {
            Log.i(TAG, "Remember that device has FallbackDevice when become inactive active");

            groupDescriptor.mHasFallbackDeviceWhenGettingInactive = true;
        }