Changes as per issue.

This commit is contained in:
Philip Abbey
2024-11-19 21:56:32 +00:00
parent ad73971758
commit b6719365b2
2 changed files with 8 additions and 5 deletions

View File

@ -14,7 +14,12 @@
//
// Description:
//
// Home Assistant settings.
// Home Assistant settings.
//
// WARNING!
//
// Careful putting ErrorView.show() calls in here. They need to be guarded so that
// they do not get called when only displaying the glance view.
//
//-----------------------------------------------------------------------------------
@ -93,8 +98,6 @@ class Settings {
Background.deleteTemporalEvent();
Background.deleteActivityCompletedEvent();
}
} else {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String);
}
} else {
// Explicitly disable the background event which persists when the application closes.

View File

@ -260,7 +260,7 @@ class WebhookManager {
];
if (Toybox has :ActivityMonitor) {
System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class");
// System.println("WebhookManager registerWebhookSensors(): has ActivityMonitor class");
var activityInfo = ActivityMonitor.getInfo();
sensors.add({
"name" => "Steps today",
@ -309,7 +309,7 @@ class WebhookManager {
});
}
} else {
System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class");
//System.println("WebhookManager registerWebhookSensors(): has no ActivityMonitor class");
}
if (Activity has :getProfileInfo) {