Pebble: rename pushMessage() to onAppStart()

here
Andreas Shimokawa 2016-12-31 19:04:05 +01:00
parent 82c0f35c58
commit 4e543d4b34
4 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ public class AppMessageHandler {
return null; return null;
} }
public GBDeviceEvent[] pushMessage() { public GBDeviceEvent[] onAppStart() {
return null; return null;
} }

View File

@ -55,11 +55,11 @@ class AppMessageHandlerMarioTime extends AppMessageHandler {
if (!weatherRequested) { if (!weatherRequested) {
return new GBDeviceEvent[]{null}; return new GBDeviceEvent[]{null};
} }
return pushMessage(); return onAppStart();
} }
@Override @Override
public GBDeviceEvent[] pushMessage() { public GBDeviceEvent[] onAppStart() {
ParcelableWeather2 weather = Weather.getInstance().getWeather2(); ParcelableWeather2 weather = Weather.getInstance().getWeather2();
if (weather == null) { if (weather == null) {

View File

@ -110,7 +110,7 @@ public class AppMessageHandlerPebStyle extends AppMessageHandler {
} }
@Override @Override
public GBDeviceEvent[] pushMessage() { public GBDeviceEvent[] onAppStart() {
return null; return null;
/* /*
GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes(); GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes();

View File

@ -2126,7 +2126,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
currentRunningApp = uuid; currentRunningApp = uuid;
AppMessageHandler handler = mAppMessageHandlers.get(uuid); AppMessageHandler handler = mAppMessageHandlers.get(uuid);
if (handler != null) { if (handler != null) {
return handler.pushMessage(); return handler.onAppStart();
} }
else { else {
GBDeviceEventAppManagement gbDeviceEventAppManagement = new GBDeviceEventAppManagement(); GBDeviceEventAppManagement gbDeviceEventAppManagement = new GBDeviceEventAppManagement();
@ -2459,7 +2459,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
} }
else { else {
currentRunningApp = uuid; currentRunningApp = uuid;
devEvts = handler.pushMessage(); devEvts = handler.onAppStart();
} }
} else { } else {
devEvts = new GBDeviceEvent[]{null}; devEvts = new GBDeviceEvent[]{null};