Pebble: rename pushMessage() to onAppStart()
parent
82c0f35c58
commit
4e543d4b34
|
@ -31,7 +31,7 @@ public class AppMessageHandler {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GBDeviceEvent[] pushMessage() {
|
public GBDeviceEvent[] onAppStart() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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};
|
||||||
|
|
Loading…
Reference in New Issue