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

Commit 35efdb06 authored by Sal Savage's avatar Sal Savage Committed by android-build-merger
Browse files

Merge "Update BluetoothProfileConnector to invoke service disconnections with...

Merge "Update BluetoothProfileConnector to invoke service disconnections with correct profile ID" am: d8b457545a am: 8b3ceb7640 am: 7e5052ae
am: 51c7a6b2

Change-Id: I26d7e2a2c8932a3ae1f4b73b7216c16aa5b9d8ed
parents b011ddd1 51c7a6b2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -32,12 +32,12 @@ import android.util.Log;
 * @hide
 */
public abstract class BluetoothProfileConnector<T> {
    private int mProfileId;
    private final int mProfileId;
    private BluetoothProfile.ServiceListener mServiceListener;
    private BluetoothProfile mProfileProxy;
    private final BluetoothProfile mProfileProxy;
    private Context mContext;
    private String mProfileName;
    private String mServiceName;
    private final String mProfileName;
    private final String mServiceName;
    private volatile T mService;

    private final IBluetoothStateChangeCallback mBluetoothStateChangeCallback =
@@ -65,7 +65,7 @@ public abstract class BluetoothProfileConnector<T> {
            logDebug("Proxy object disconnected");
            doUnbind();
            if (mServiceListener != null) {
                mServiceListener.onServiceDisconnected(BluetoothProfile.A2DP);
                mServiceListener.onServiceDisconnected(mProfileId);
            }
        }
    };