1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-27 08:47:03 +02:00

Pebble: also acknowledge PebbleKit intents with transaction_id -1

I don't understand why this should be necessary but for some 3rd party apps it helps (#509)
This commit is contained in:
Andreas Shimokawa 2017-02-13 22:27:37 +01:00
parent 1d1edd41d7
commit a26563d6c7

View File

@ -55,9 +55,9 @@ class PebbleKitSupport {
try {
JSONArray jsonArray = new JSONArray(jsonString);
mPebbleIoThread.write(mPebbleProtocol.encodeApplicationMessageFromJSON(uuid, jsonArray));
if (transaction_id >= 0 && transaction_id <= 255) {
sendAppMessageAck(transaction_id);
}
// if (transaction_id >= 0 && transaction_id <= 255) {
sendAppMessageAck(transaction_id);
// }
} catch (JSONException e) {
e.printStackTrace();
}