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:
parent
d646b6773e
commit
185605211d
|
@ -1811,7 +1811,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||||
buf.get(bytes);
|
buf.get(bytes);
|
||||||
if (type == TYPE_BYTEARRAY) {
|
if (type == TYPE_BYTEARRAY) {
|
||||||
jsonObject.put("type", "bytes");
|
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 {
|
} else {
|
||||||
jsonObject.put("type", "string");
|
jsonObject.put("type", "string");
|
||||||
jsonObject.put("value", new String(bytes));
|
jsonObject.put("value", new String(bytes));
|
||||||
|
|
Loading…
Reference in New Issue