summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhyunho <hhstark.kang@samsung.com>2019-09-10 12:55:01 +0900
committerhyunho <hhstark.kang@samsung.com>2019-09-10 13:58:47 +0900
commit0ca9ecdb70d3b7ca396c7a1121e161575cd8fa8c (patch)
tree49647282affb0c60320b709a9a389c7e24b2f463 /src
parent5744bc106331c71419fb8bbe3f4c7f330c117a5d (diff)
downloadapp-core-0ca9ecdb70d3b7ca396c7a1121e161575cd8fa8c.tar.gz
app-core-0ca9ecdb70d3b7ca396c7a1121e161575cd8fa8c.tar.bz2
app-core-0ca9ecdb70d3b7ca396c7a1121e161575cd8fa8c.zip
Fix suspend event initialize bug
The initial sate of event is NULL and the value of APPCORE_BASE_SUSPENDED_STATE_WILL_ENTER_SUSPEND is also 0 therefore, suspend event cannot be called Change-Id: I67ad2be73f9aaeeb7c951d6c3009164c5e666b3b Signed-off-by: hyunho <hhstark.kang@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/base/appcore_base.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/base/appcore_base.c b/src/base/appcore_base.c
index b45ddf9..6ac694a 100644
--- a/src/base/appcore_base.c
+++ b/src/base/appcore_base.c
@@ -1409,7 +1409,12 @@ EXPORT_API appcore_base_event_h appcore_base_add_event(enum appcore_base_event e
node->cb = cb;
node->type = event;
node->data = data;
- node->prev_event = NULL;
+
+ if (event == APPCORE_BASE_EVENT_LANG_CHANGE ||
+ event == APPCORE_BASE_EVENT_REGION_CHANGE)
+ node->prev_event = NULL;
+ else
+ node->prev_event = GINT_TO_POINTER(-1);
__events = g_list_append(__events, node);
return node;