AppState state_ = APP_STATE_NOT_RUNNING;
};
-constexpr int UI_APP_EVENT_MAX = 7;
+constexpr int UI_APP_EVENT_MAX = 8;
constexpr IAppCore::IEvent::Type __app_event_converter[UI_APP_EVENT_MAX] = {
[APP_EVENT_LOW_MEMORY] =
IAppCore::IEvent::Type::LOW_MEMORY,
IAppCore::IEvent::Type::SUSPENDED_STATE_CHANGE,
[APP_EVENT_UPDATE_REQUESTED] =
IAppCore::IEvent::Type::UPDATE_REQUESTED,
+ [APP_EVENT_TIME_ZONE_CHANGED] =
+ IAppCore::IEvent::Type::TIME_ZONE_CHANGED,
};
std::unique_ptr<UiAppContext> __context;
}
if (event_type < APP_EVENT_LOW_MEMORY ||
- event_type > APP_EVENT_UPDATE_REQUESTED) {
+ event_type > APP_EVENT_TIME_ZONE_CHANGED) {
_E("Invalid event type");
return APP_ERROR_INVALID_PARAMETER;
}
auto* eb = reinterpret_cast<std::shared_ptr<AppEvent>*>(event_handler);
auto type = (*eb)->GetType();
if (type < IAppCore::IEvent::Type::LOW_MEMORY ||
- type > IAppCore::IEvent::Type::UPDATE_REQUESTED) {
+ type > IAppCore::IEvent::Type::TIME_ZONE_CHANGED) {
// LCOV_EXCL_START
_E("invalid parameter");
return APP_ERROR_INVALID_PARAMETER;