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)
master
Andreas Shimokawa 2017-02-13 22:27:37 +01:00
parent 1d1edd41d7
commit a26563d6c7
1 changed files with 3 additions and 3 deletions

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();
}