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

Commit 9be97f06 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add the connection state change handle for the volume control profile"...

Merge "Add the connection state change handle for the volume control profile" into udc-dev am: 2a37e27c am: 186f55e7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23276876



Change-Id: Iefd1b528cad2e5f08ecd4bfe3c446510682fc754
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f1a07839 186f55e7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import android.bluetooth.BluetoothPbapClient;
import android.bluetooth.BluetoothProfile;
import android.bluetooth.BluetoothSap;
import android.bluetooth.BluetoothUuid;
import android.bluetooth.BluetoothVolumeControl;
import android.content.Context;
import android.content.Intent;
import android.os.ParcelUuid;
@@ -240,8 +241,8 @@ public class LocalBluetoothProfileManager {
                Log.d(TAG, "Adding local Volume Control profile");
            }
            mVolumeControlProfile = new VolumeControlProfile(mContext, mDeviceManager, this);
            // Note: no event handler for VCP, only for being connectable.
            mProfileNameMap.put(VolumeControlProfile.NAME, mVolumeControlProfile);
            addProfile(mVolumeControlProfile, VolumeControlProfile.NAME,
                    BluetoothVolumeControl.ACTION_CONNECTION_STATE_CHANGED);
        }
        if (mLeAudioProfile == null && supportedList.contains(BluetoothProfile.LE_AUDIO)) {
            if (DEBUG) {