2 Bug fixes

1. Fixed a bug where templates failed to display in toggle menu items (at least on some devices).
2. Fixed a bug where a menu item requesting to exit on completion appeared to indicate failure when using Wi-Fi or LTE. The fix uses a delay in exiting the application modelled as sufficient for a Venu 2 device, so this might need tweaking for other devices.
This commit is contained in:
Philip Abbey
2025-09-12 14:34:16 +01:00
parent 46e44ada30
commit e284cd2d4a
6 changed files with 47 additions and 27 deletions

View File

@@ -482,6 +482,8 @@ class HomeAssistantApp extends Application.AppBase {
break;
case Communications.NETWORK_RESPONSE_OUT_OF_MEMORY:
// As we're out of memory, pretend we've checked and don't try again.
mIsCacheChecked = true;
// System.println("HomeAssistantApp onReturnCheckMenuConfig() Response Code: NETWORK_RESPONSE_OUT_OF_MEMORY, are we going too fast?");
var myTimer = new Timer.Timer();
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.