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

Commit 495d8891 authored by Deqiang Chen's avatar Deqiang Chen Committed by android-build-merger
Browse files

Merge "Avoid IllegalArgumentException when bluetooth is disabled" am: 4b7400c3 am: 981551ae

am: 68436838

Change-Id: Idb94b41924023ba3fab9694c93f17ed4ce4d01b4
parents a3414b67 68436838
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -224,8 +224,10 @@ public final class BluetoothA2dp implements BluetoothProfile {
                        if (VDBG) Log.d(TAG, "Unbinding service...");
                        try {
                            mServiceLock.writeLock().lock();
                            if (mService != null) {
                                mService = null;
                                mContext.unbindService(mConnection);
                            }
                        } catch (Exception re) {
                            Log.e(TAG, "", re);
                        } finally {
+4 −2
Original line number Diff line number Diff line
@@ -233,8 +233,10 @@ public final class BluetoothHidHost implements BluetoothProfile {
                        if (VDBG) Log.d(TAG, "Unbinding service...");
                        synchronized (mConnection) {
                            try {
                                if (mService != null) {
                                    mService = null;
                                    mContext.unbindService(mConnection);
                                }
                            } catch (Exception re) {
                                Log.e(TAG, "", re);
                            }
+4 −2
Original line number Diff line number Diff line
@@ -121,8 +121,10 @@ public class BluetoothPbap implements BluetoothProfile {
                        log("Unbinding service...");
                        synchronized (mConnection) {
                            try {
                                if (mService != null) {
                                    mService = null;
                                    mContext.unbindService(mConnection);
                                }
                            } catch (Exception re) {
                                Log.e(TAG, "", re);
                            }