From 9f2a7f54487be17ab1f3b7a6d0f66f6beebee575 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Thu, 28 Jan 2016 11:59:23 +0100 Subject: [PATCH] actual deletetion of the Health app. It brings the health watchapp back to the pristine state "you need pebble health in order to use this app". The data, however, is not deleted! --- .../gadgetbridge/service/devices/pebble/PebbleProtocol.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java index d1e3fb13..58667332 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java @@ -678,12 +678,11 @@ public class PebbleProtocol extends GBDeviceProtocol { public byte[] encodeActivateHealth(boolean activate) { byte[] blob; byte command; + command = BLOBDB_INSERT; if (activate) { - command = BLOBDB_INSERT; blob = new byte[]{0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02}; } else { - command = BLOBDB_DELETE; - blob = null; + blob = new byte[]{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; } return encodeBlobdb("activityPreferences", command, BLOBDB_HEALTH, blob); }