Reset the pointer to the Bluetooth GATT service
During error recovery, if the mBluetooth pointer is reset to null, reset the mBluetoothGatt pointer as well. Bug: 21756298 Change-Id: I26204ba47dd3c5465bb7de30cfa5dc0f07eee2fd
This commit is contained in:
committed by
Andre Eisenbach
parent
59d72c8626
commit
29b8c4ab8a
@@ -1506,6 +1506,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
|
|||||||
//Unbind
|
//Unbind
|
||||||
mContext.unbindService(mConnection);
|
mContext.unbindService(mConnection);
|
||||||
}
|
}
|
||||||
|
mBluetoothGatt = null;
|
||||||
}
|
}
|
||||||
SystemClock.sleep(100);
|
SystemClock.sleep(100);
|
||||||
|
|
||||||
@@ -1811,6 +1812,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
|
|||||||
//Unbind
|
//Unbind
|
||||||
mContext.unbindService(mConnection);
|
mContext.unbindService(mConnection);
|
||||||
}
|
}
|
||||||
|
mBluetoothGatt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
mHandler.removeMessages(MESSAGE_BLUETOOTH_STATE_CHANGE);
|
mHandler.removeMessages(MESSAGE_BLUETOOTH_STATE_CHANGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user