Pebble: try to improve PebbleKit compatibility

(Might help with glance #506)
here
Andreas Shimokawa 2017-01-18 22:10:10 +01:00
parent ed020c2a97
commit 26a751977e
1 changed files with 2 additions and 2 deletions

View File

@ -1910,8 +1910,8 @@ public class PebbleProtocol extends GBDeviceProtocol {
try {
JSONObject jsonObject = (JSONObject) jsonArray.get(i);
String type = (String) jsonObject.get("type");
int key = (int) jsonObject.get("key");
int length = (int) jsonObject.get("length");
int key = jsonObject.getInt("key");
int length = jsonObject.getInt("length");
switch (type) {
case "uint":
case "int":