mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02: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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user