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

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

Merge "le_audio: Set default value for allowed context mask" into main

parents 98e4ca69 2120e8b3
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -247,6 +247,8 @@ public class LeAudioService extends ProfileService {
        LeAudioGroupDescriptor(boolean isInbandRingtonEnabled) {
            mIsConnected = false;
            mActiveState = ACTIVE_STATE_INACTIVE;
            mAllowedSinkContexts = BluetoothLeAudio.CONTEXTS_ALL;
            mAllowedSourceContexts = BluetoothLeAudio.CONTEXTS_ALL;
            mHasFallbackDeviceWhenGettingInactive = false;
            mDirection = AUDIO_DIRECTION_NONE;
            mCodecStatus = null;
@@ -338,11 +340,8 @@ public class LeAudioService extends ProfileService {
        }

        boolean areAllowedContextsModified() {
            if ((mAllowedSinkContexts != BluetoothLeAudio.CONTEXTS_ALL)
                    || (mAllowedSourceContexts != BluetoothLeAudio.CONTEXTS_ALL)) {
                return true;
            }
            return false;
            return (mAllowedSinkContexts != BluetoothLeAudio.CONTEXTS_ALL)
                    || (mAllowedSourceContexts != BluetoothLeAudio.CONTEXTS_ALL);
        }
    }