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

@ -16,6 +16,11 @@
// //
// 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.
//
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
using Toybox.Lang; using Toybox.Lang;
@ -93,8 +98,6 @@ class Settings {
Background.deleteTemporalEvent(); Background.deleteTemporalEvent();
Background.deleteActivityCompletedEvent(); Background.deleteActivityCompletedEvent();
} }
} else {
ErrorView.show(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String);
} }
} else { } else {
// Explicitly disable the background event which persists when the application closes. // Explicitly disable the background event which persists when the application closes.

View File

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