Pebble: when reading app fetch uuid, do not switch to little endian too early
This commit is contained in:
parent
0d0b3a87e1
commit
f0924716fc
|
@ -966,12 +966,12 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||||
}
|
}
|
||||||
|
|
||||||
private GBDeviceEventAppManagement decodeAppFetch(ByteBuffer buf) {
|
private GBDeviceEventAppManagement decodeAppFetch(ByteBuffer buf) {
|
||||||
buf.order(ByteOrder.LITTLE_ENDIAN);
|
|
||||||
byte command = buf.get();
|
byte command = buf.get();
|
||||||
if (command == 0x01) {
|
if (command == 0x01) {
|
||||||
long uuid_high = buf.getLong();
|
long uuid_high = buf.getLong();
|
||||||
long uuid_low = buf.getLong();
|
long uuid_low = buf.getLong();
|
||||||
UUID uuid = new UUID(uuid_high, uuid_low);
|
UUID uuid = new UUID(uuid_high, uuid_low);
|
||||||
|
buf.order(ByteOrder.LITTLE_ENDIAN);
|
||||||
int app_id = buf.getInt();
|
int app_id = buf.getInt();
|
||||||
GBDeviceEventAppManagement fetchRequest = new GBDeviceEventAppManagement();
|
GBDeviceEventAppManagement fetchRequest = new GBDeviceEventAppManagement();
|
||||||
fetchRequest.type = GBDeviceEventAppManagement.EventType.INSTALL;
|
fetchRequest.type = GBDeviceEventAppManagement.EventType.INSTALL;
|
||||||
|
|
Loading…
Reference in New Issue