summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-01-24 18:11:57 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2017-01-24 18:12:32 +0900
commita9b27c9a08e524ae72d74d9c77eb00dbf9711697 (patch)
tree2d28cc738001cccf7c339bbdb39b22c021ed4b2a
parent8c11334ab0e3b0d4c67d60bcc4f03a27ecde864c (diff)
downloadapplication-a9b27c9a08e524ae72d74d9c77eb00dbf9711697.tar.gz
application-a9b27c9a08e524ae72d74d9c77eb00dbf9711697.tar.bz2
application-a9b27c9a08e524ae72d74d9c77eb00dbf9711697.zip
Fix bug about the update requested event
Change-Id: I4a4d49883071e41eacfd5c74e77b98cd47a8f3cc Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-xsrc/app_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app_main.c b/src/app_main.c
index 9862ba8..fc57921 100755
--- a/src/app_main.c
+++ b/src/app_main.c
@@ -891,7 +891,7 @@ int ui_app_add_event_handler(app_event_handler_h *event_handler, app_event_type_
if (event_handler == NULL || callback == NULL)
return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, "null parameter");
- if (event_type < APP_EVENT_LOW_MEMORY || event_type > APP_EVENT_SUSPENDED_STATE_CHANGED)
+ if (event_type < APP_EVENT_LOW_MEMORY || event_type > APP_EVENT_UPDATE_REQUESTED)
return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, "invalid event type");
EINA_LIST_FOREACH(handler_list[event_type], l_itr, handler) {
@@ -933,7 +933,7 @@ int ui_app_remove_event_handler(app_event_handler_h event_handler)
}
type = event_handler->type;
- if (type < APP_EVENT_LOW_MEMORY || type > APP_EVENT_SUSPENDED_STATE_CHANGED)
+ if (type < APP_EVENT_LOW_MEMORY || type > APP_EVENT_UPDATE_REQUESTED)
return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, "invalid handler");
EINA_LIST_FOREACH_SAFE(handler_list[type], l_itr, l_next, handler) {