Chromium Code Reviews| Index: device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| index 6b163d828a2969461823ec1590fbb9d4d8e4a630..fcf34c54fe57bfa51fb1f7315d4d3679cf533c08 100644 |
| --- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| +++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| @@ -148,6 +148,8 @@ final class ChromeBluetoothDevice { |
| : "Disconnected"); |
| if (newState == android.bluetooth.BluetoothProfile.STATE_CONNECTED) { |
| mBluetoothGatt.discoverServices(); |
| + } else if (newState == android.bluetooth.BluetoothProfile.STATE_DISCONNECTED) { |
| + mBluetoothGatt.close(); |
|
scheib
2016/01/27 00:30:43
Please add comments here explaining why this is ca
|
| } |
| ThreadUtils.runOnUiThread(new Runnable() { |
| @Override |