mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-18 12:28:41 +00:00
Merge pull request #46 from house-of-abbey/43-battery-reporting-stops-working-when-scrolling-trough-the-widget
Amend behaviour of background service for glances.
This commit is contained in:
@ -71,12 +71,6 @@ class Settings {
|
|||||||
Background.deleteTemporalEvent();
|
Background.deleteTemporalEvent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// Explicitly disable the background events for glances and ironically any use by the background service. However
|
|
||||||
// that has been avoided more recently by not using this object in BackgroundServiceDelegate.
|
|
||||||
if ((System has :ServiceDelegate) and (Background.getTemporalEventRegisteredTime() != null)) {
|
|
||||||
Background.deleteTemporalEvent();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (Globals.scDebug) {
|
if (Globals.scDebug) {
|
||||||
System.println("Settings update(): getTemporalEventRegisteredTime() = " + Background.getTemporalEventRegisteredTime());
|
System.println("Settings update(): getTemporalEventRegisteredTime() = " + Background.getTemporalEventRegisteredTime());
|
||||||
@ -99,7 +93,7 @@ class Settings {
|
|||||||
static function getConfigUrl() as Lang.String {
|
static function getConfigUrl() as Lang.String {
|
||||||
return mConfigUrl;
|
return mConfigUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
static function getAppTimeout() as Lang.Number {
|
static function getAppTimeout() as Lang.Number {
|
||||||
return mAppTimeout * 1000; // Convert to milliseconds
|
return mAppTimeout * 1000; // Convert to milliseconds
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user