mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Pebble: rename pushMessage() to onAppStart()
This commit is contained in:
parent
82c0f35c58
commit
4e543d4b34
@ -31,7 +31,7 @@ public class AppMessageHandler {
|
||||
return null;
|
||||
}
|
||||
|
||||
public GBDeviceEvent[] pushMessage() {
|
||||
public GBDeviceEvent[] onAppStart() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -110,7 +110,7 @@ public class AppMessageHandlerPebStyle extends AppMessageHandler {
|
||||
}
|
||||
|
||||
@Override
|
||||
public GBDeviceEvent[] pushMessage() {
|
||||
public GBDeviceEvent[] onAppStart() {
|
||||
return null;
|
||||
/*
|
||||
GBDeviceEventSendBytes sendBytes = new GBDeviceEventSendBytes();
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user