Do not override the configured settings with our old stored values (but keep them around)

This commit is contained in:
Daniele Gobbetti 2016-03-04 17:43:43 +01:00
parent aba21d3ab7
commit 3920b3f977
2 changed files with 9 additions and 0 deletions

View File

@ -96,18 +96,24 @@ public class AppMessageHandlerPebStyle extends AppMessageHandler {
@Override @Override
public GBDeviceEvent[] handleMessage(ArrayList<Pair<Integer, Object>> pairs) { public GBDeviceEvent[] handleMessage(ArrayList<Pair<Integer, Object>> pairs) {
return null;
/*
GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes(); GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes();
ByteBuffer buf = ByteBuffer.allocate(encodeAck().length + encodePebStyleConfig().length); ByteBuffer buf = ByteBuffer.allocate(encodeAck().length + encodePebStyleConfig().length);
buf.put(encodeAck()); buf.put(encodeAck());
buf.put(encodePebStyleConfig()); buf.put(encodePebStyleConfig());
sendBytes.encodedBytes = buf.array(); sendBytes.encodedBytes = buf.array();
return new GBDeviceEvent[]{sendBytes}; return new GBDeviceEvent[]{sendBytes};
*/
} }
@Override @Override
public GBDeviceEvent[] pushMessage() { public GBDeviceEvent[] pushMessage() {
return null;
/*
GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes(); GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes();
sendBytes.encodedBytes = encodePebStyleConfig(); sendBytes.encodedBytes = encodePebStyleConfig();
return new GBDeviceEvent[]{sendBytes}; return new GBDeviceEvent[]{sendBytes};
*/
} }
} }

View File

@ -100,8 +100,11 @@ public class AppMessageHandlerTimeStylePebble extends AppMessageHandler {
@Override @Override
public GBDeviceEvent[] handleMessage(ArrayList<Pair<Integer, Object>> pairs) { public GBDeviceEvent[] handleMessage(ArrayList<Pair<Integer, Object>> pairs) {
return null;
/*
GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes(); GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes();
sendBytes.encodedBytes = encodeTimeStylePebbleConfig(); sendBytes.encodedBytes = encodeTimeStylePebbleConfig();
return new GBDeviceEvent[]{sendBytes}; return new GBDeviceEvent[]{sendBytes};
*/
} }
} }