Loading framework/java/android/bluetooth/BluetoothHeadset.java +5 −1 Original line number Diff line number Diff line Loading @@ -448,7 +448,11 @@ public final class BluetoothHeadset implements BluetoothProfile { Log.e(TAG, "", re); } } if (mServiceListener != null) { mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET); mServiceListener = null; } doUnbind(); mCloseGuard.close(); } Loading framework/java/android/bluetooth/BluetoothProfileConnector.java +4 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,10 @@ public abstract class BluetoothProfileConnector<T> { } void disconnect() { if (mServiceListener != null) { mServiceListener.onServiceDisconnected(mProfileId); mServiceListener = null; } IBluetoothManager mgr = BluetoothAdapter.getDefaultAdapter().getBluetoothManager(); if (mgr != null) { try { Loading Loading
framework/java/android/bluetooth/BluetoothHeadset.java +5 −1 Original line number Diff line number Diff line Loading @@ -448,7 +448,11 @@ public final class BluetoothHeadset implements BluetoothProfile { Log.e(TAG, "", re); } } if (mServiceListener != null) { mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET); mServiceListener = null; } doUnbind(); mCloseGuard.close(); } Loading
framework/java/android/bluetooth/BluetoothProfileConnector.java +4 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,10 @@ public abstract class BluetoothProfileConnector<T> { } void disconnect() { if (mServiceListener != null) { mServiceListener.onServiceDisconnected(mProfileId); mServiceListener = null; } IBluetoothManager mgr = BluetoothAdapter.getDefaultAdapter().getBluetoothManager(); if (mgr != null) { try { Loading