Added confirmation of tap event and amended delegate decoding of actions.

This commit is contained in:
Philip Abbey
2023-11-01 19:46:28 +00:00
parent 66b5e95f83
commit d81fa1abcd
2 changed files with 10 additions and 11 deletions

View File

@ -57,6 +57,13 @@ class HomeAssistantMenuItem extends WatchUi.MenuItem {
if (Globals.debug) {
System.println("HomeAssistantMenuItem Note - onReturnExecScript(): Correct script executed.");
}
new Alert({
:timeout => Globals.alertTimeout,
:font => Graphics.FONT_SYSTEM_MEDIUM,
:text => (d[i].get("attributes") as Lang.Dictionary).get("friendly_name"),
:fgcolor => Graphics.COLOR_WHITE,
:bgcolor => Graphics.COLOR_BLACK
}).pushView(WatchUi.SLIDE_IMMEDIATE);
}
}
}