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

Commit 609db0f4 authored by Eric Shih's avatar Eric Shih
Browse files

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

Bug: 281970923
Test: atest GoogleBluetoothInstrumentationTests
Change-Id: I20eb76aad6ecdcdf4cc47289735d72d5c1e2da1f
parent 98c4d50e
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;
        }