Handle errors for the second step

This commit is contained in:
Joseph Abbey
2024-01-11 20:48:46 +00:00
parent 67731708b3
commit 22bb84e13b
2 changed files with 89 additions and 9 deletions

View File

@ -109,6 +109,11 @@ class Settings {
Properties.setValue("webhook_id", mWebhookId);
}
static function removeWebhookId() {
mWebhookId = "";
Properties.setValue("webhook_id", mWebhookId);
}
static function getApiUrl() as Lang.String {
return mApiUrl;
}
@ -149,4 +154,12 @@ class Settings {
static function getIsWidgetStartNoTap() as Lang.Boolean {
return mIsWidgetStartNoTap;
}
static function disableBatteryLevel() {
mIsBatteryLevelEnabled = false;
Properties.setValue("enable_battery_level", mIsBatteryLevelEnabled);
if ((System has :ServiceDelegate) and (Background.getTemporalEventRegisteredTime() != null)) {
Background.deleteTemporalEvent();
}
}
}