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

(Fixes a bug with TCW)
here
Andreas Shimokawa 2017-01-10 22:30:55 +01:00
parent d646b6773e
commit 185605211d
1 changed files with 1 additions and 1 deletions

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