mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-09-13 04:31:32 +00:00
Update HomeAssistantApp.mc
Cosmetic
This commit is contained in:
@@ -262,16 +262,16 @@ class HomeAssistantApp extends Application.AppBase {
|
|||||||
Settings.unsetClearCache();
|
Settings.unsetClearCache();
|
||||||
}
|
}
|
||||||
if (menu == null) {
|
if (menu == null) {
|
||||||
var phoneConnected = System.getDeviceSettings().phoneConnected;
|
var phoneConnected = System.getDeviceSettings().phoneConnected;
|
||||||
var internetAvailable = System.getDeviceSettings().connectionAvailable;
|
var internetAvailable = System.getDeviceSettings().connectionAvailable;
|
||||||
if (! phoneConnected or ! internetAvailable) {
|
if (! phoneConnected or ! internetAvailable) {
|
||||||
|
// System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
|
||||||
var errorRez = $.Rez.Strings.NoPhone;
|
var errorRez = $.Rez.Strings.NoPhone;
|
||||||
if (Settings.getWifiLteExecutionEnabled()) {
|
if (Settings.getWifiLteExecutionEnabled()) {
|
||||||
errorRez = $.Rez.Strings.NoPhoneNoCache;
|
errorRez = $.Rez.Strings.NoPhoneNoCache;
|
||||||
} else if (! internetAvailable) {
|
} else if (! internetAvailable) {
|
||||||
errorRez = $.Rez.Strings.Unavailable;
|
errorRez = $.Rez.Strings.Unavailable;
|
||||||
}
|
}
|
||||||
// System.println("HomeAssistantApp fetchMenuConfig(): No Phone connection, skipping API call.");
|
|
||||||
if (!mIsApp) {
|
if (!mIsApp) {
|
||||||
WatchUi.requestUpdate();
|
WatchUi.requestUpdate();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user