Loading core/java/android/bluetooth/BluetoothHeadset.java +1 −6 Original line number Diff line number Diff line Loading @@ -229,7 +229,6 @@ public final class BluetoothHeadset implements BluetoothProfile { private ServiceListener mServiceListener; private IBluetoothHeadset mService; private BluetoothAdapter mAdapter; private boolean mIsClosed; final private IBluetoothStateChangeCallback mBluetoothStateChangeCallback = new IBluetoothStateChangeCallback.Stub() { Loading Loading @@ -260,7 +259,6 @@ public final class BluetoothHeadset implements BluetoothProfile { mContext = context; mServiceListener = l; mAdapter = BluetoothAdapter.getDefaultAdapter(); mIsClosed = false; IBluetoothManager mgr = mAdapter.getBluetoothManager(); if (mgr != null) { Loading Loading @@ -314,7 +312,7 @@ public final class BluetoothHeadset implements BluetoothProfile { Log.e(TAG,"",e); } } mIsClosed = true; mServiceListener = null; doUnbind(); } Loading Loading @@ -983,9 +981,6 @@ public final class BluetoothHeadset implements BluetoothProfile { if (mServiceListener != null) { mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET); } if (mIsClosed){ mServiceListener = null; } break; } } Loading Loading
core/java/android/bluetooth/BluetoothHeadset.java +1 −6 Original line number Diff line number Diff line Loading @@ -229,7 +229,6 @@ public final class BluetoothHeadset implements BluetoothProfile { private ServiceListener mServiceListener; private IBluetoothHeadset mService; private BluetoothAdapter mAdapter; private boolean mIsClosed; final private IBluetoothStateChangeCallback mBluetoothStateChangeCallback = new IBluetoothStateChangeCallback.Stub() { Loading Loading @@ -260,7 +259,6 @@ public final class BluetoothHeadset implements BluetoothProfile { mContext = context; mServiceListener = l; mAdapter = BluetoothAdapter.getDefaultAdapter(); mIsClosed = false; IBluetoothManager mgr = mAdapter.getBluetoothManager(); if (mgr != null) { Loading Loading @@ -314,7 +312,7 @@ public final class BluetoothHeadset implements BluetoothProfile { Log.e(TAG,"",e); } } mIsClosed = true; mServiceListener = null; doUnbind(); } Loading Loading @@ -983,9 +981,6 @@ public final class BluetoothHeadset implements BluetoothProfile { if (mServiceListener != null) { mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET); } if (mIsClosed){ mServiceListener = null; } break; } } Loading