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:
Philip Abbey
2024-01-07 20:59:37 +00:00
committed by GitHub

View File

@ -71,12 +71,6 @@ class Settings {
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) {
System.println("Settings update(): getTemporalEventRegisteredTime() = " + Background.getTemporalEventRegisteredTime());
@ -99,7 +93,7 @@ class Settings {
static function getConfigUrl() as Lang.String {
return mConfigUrl;
}
static function getAppTimeout() as Lang.Number {
return mAppTimeout * 1000; // Convert to milliseconds
}