mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Pebble: rename pushMessage() to onAppStart()
This commit is contained in:
@@ -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};
|
||||
|
Reference in New Issue
Block a user