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;
}
public GBDeviceEvent[] pushMessage() {
public GBDeviceEvent[] onAppStart() {
return null;
}

View File

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

View File

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

View File

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