Encapsulate Notification management in NotificationManager. It implement a static array of notifications to avoid dynamic allocation.
This commit is contained in:
@@ -123,7 +123,9 @@ void Tile::OnObjectEvent(lv_obj_t *obj, lv_event_t event, uint32_t buttonId) {
|
||||
tile->StartClockApp();
|
||||
break;
|
||||
case 3:
|
||||
modal->Show();
|
||||
char versionStr[20];
|
||||
sprintf(versionStr, "VERSION: %d.%d.%d", Version::Major(), Version::Minor(), Version::Patch());
|
||||
modal->Show(versionStr);
|
||||
break;
|
||||
case 4:
|
||||
tile->StartSysInfoApp();
|
||||
|
Reference in New Issue
Block a user