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

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

Merge "Fix not using previous var when setting audio policy & change log level"

parents 7759f93a 609db0f4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1356,7 +1356,7 @@ public class HeadsetClientStateMachine extends StateMachine {
            //   2. remote device supports audio policy
            if (mForceSetAudioPolicyProperty
                    && getAudioPolicyRemoteSupported() == BluetoothStatusCodes.FEATURE_SUPPORTED) {
                setAudioPolicy(new BluetoothSinkAudioPolicy.Builder()
                setAudioPolicy(new BluetoothSinkAudioPolicy.Builder(mHsClientAudioPolicy)
                        .setActiveDevicePolicyAfterConnection(mConnectingTimePolicyProperty)
                        .setInBandRingtonePolicy(mInBandRingtonePolicyProperty)
                        .build());
@@ -2244,7 +2244,7 @@ public class HeadsetClientStateMachine extends StateMachine {
        mHsClientAudioPolicy = policies;

        if (getAudioPolicyRemoteSupported() != BluetoothStatusCodes.FEATURE_SUPPORTED) {
            Log.e(TAG, "Audio Policy feature not supported!");
            Log.i(TAG, "Audio Policy feature not supported!");
            return;
        }