1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-26 09:37:33 +01: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 { try {
JSONArray jsonArray = new JSONArray(jsonString); JSONArray jsonArray = new JSONArray(jsonString);
mPebbleIoThread.write(mPebbleProtocol.encodeApplicationMessageFromJSON(uuid, jsonArray)); mPebbleIoThread.write(mPebbleProtocol.encodeApplicationMessageFromJSON(uuid, jsonArray));
if (transaction_id >= 0 && transaction_id <= 255) { // if (transaction_id >= 0 && transaction_id <= 255) {
sendAppMessageAck(transaction_id); sendAppMessageAck(transaction_id);
} // }
} catch (JSONException e) { } catch (JSONException e) {
e.printStackTrace(); e.printStackTrace();
} }