1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00

Pebble: fix bug in PebbleKit implementation regarding binary data transferred from a watchapp to a 3rd party Android app

(Fixes a bug with TCW)
This commit is contained in:
Andreas Shimokawa 2017-01-10 22:30:55 +01:00
parent d646b6773e
commit 185605211d

View File

@ -1811,7 +1811,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
buf.get(bytes);
if (type == TYPE_BYTEARRAY) {
jsonObject.put("type", "bytes");
jsonObject.put("value", Base64.encode(bytes, Base64.NO_WRAP));
jsonObject.put("value", new String(Base64.encode(bytes, Base64.NO_WRAP)));
} else {
jsonObject.put("type", "string");
jsonObject.put("value", new String(bytes));