From baa29e7b862a8ba6c6b13addd9911cbd129ca880 Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Thu, 5 Jul 2018 00:02:31 +0200 Subject: [PATCH] Make extended info (debug mode) dialog disappear The callback handler is removed when disconnecting, so the state must be set first. --- .../com/health/openscale/core/bluetooth/BluetoothDebug.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java index 3ce553e4..6d54bfa2 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothDebug.java @@ -156,8 +156,8 @@ public class BluetoothDebug extends BluetoothCommunication { logService(service, false); } - disconnect(false); setBtStatus(BT_STATUS_CODE.BT_CONNECTION_LOST); + disconnect(false); return false; }