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

Commit 832ad125 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6461449 from 9ddbdbf2b58a56aa57d40c881fae06a8872b42fb to rvc-release

Change-Id: Ib17d926c97effdd835a20bcb0fea3cd9f1338a9e
parents 50b22611 d0a2a9a2
Loading
Loading
Loading
Loading
+9 −15
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@ public abstract class BluetoothProfileConnector<T> {

    private void doUnbind() {
        synchronized (mConnection) {
            try {
            if (mService != null) {
                logDebug("Unbinding service...");
                try {
@@ -114,12 +113,6 @@ public abstract class BluetoothProfileConnector<T> {
                    mService = null;
                }
            }
            } finally {
                if (mServiceListener != null) {
                    mServiceListener.onServiceDisconnected(mProfileId);
                    mServiceListener = null;
                }
            }
        }
    }

@@ -138,6 +131,7 @@ public abstract class BluetoothProfileConnector<T> {
    }

    void disconnect() {
        mServiceListener = null;
        IBluetoothManager mgr = BluetoothAdapter.getDefaultAdapter().getBluetoothManager();
        if (mgr != null) {
            try {