diff options
| author | Heiko Stuebner <heiko.stuebner@cherry.de> | 2025-05-24 23:42:23 +0200 |
|---|---|---|
| committer | mark9064 <30447455+mark9064@users.noreply.github.com> | 2025-07-03 13:19:56 +0100 |
| commit | 9afc23cba9bcf938d8c49d6e15e7662ee8e6385d (patch) | |
| tree | a5a5bdfcfe45e4e47f14e0e4ccbddec06ccdb0a1 /src/components/battery/BatteryController.cpp | |
| parent | 250e7a703290753dd99feed401347dc7ba0bfeec (diff) | |
navigation: fix greying out the app icon if not enabled
Commit 0aead42fdf51 ("navigation: Add is available (#1847)") added the
ability to draw the app icon in grey and in a disabled state when some
prerequisits were not met. Only the Navigation app was using this mechanism
due to its icons being stored in the external memory and possibly missing.
Commit 63e0c4f4efb0 ("Application selection at build time") broke this by
always setting the state as true:
for (const auto& userApp : userApps) {
apps[i++] = Screens::Tile::Applications {userApp.icon, userApp.app, true};
}
Fix this by creating an isAvailable() strcuture in the app classes, similar
to how the Watchfaces handle the same problem of checking availability.
Diffstat (limited to 'src/components/battery/BatteryController.cpp')
0 files changed, 0 insertions, 0 deletions
