From d6f9eac711539cb4d0b7e0405ec1c912d754374a Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sat, 3 Oct 2015 00:21:31 +0200 Subject: [PATCH] Revert to previous BLE connection method: - first, connectGatt(true) to support automatic (re-) connection - second, bluetoothGatt.connect() to connect immediately --- CHANGELOG.md | 1 + .../freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8b323f3..980af1f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ####Version (Next) * Mi Band: support firmare versione 1.0.10.14 (and onwards?) vibration * Mi Band: get device name from official BT SIG endpoint +* Mi Band: Display live activity data (screen stays on) ####Version 0.6.1 * Pebble: Allow muting (blacklisting) Apps from within generic notifications on the watch diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java index 84898961..9a6659e1 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java @@ -157,6 +157,7 @@ public final class BtLEQueue { BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress()); synchronized (mGattMonitor) { mBluetoothGatt = remoteDevice.connectGatt(mContext, true, internalGattCallback); + mBluetoothGatt.connect(); } setDeviceConnectionState(State.CONNECTING); return true;