Fix N_SE-45789 : taskmanager // syspopup issue.
authorhhh.kwon <hhh.kwon@samsung.com>
Thu, 11 Jul 2013 07:09:14 +0000 (16:09 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 11 Jul 2013 10:29:01 +0000 (10:29 +0000)
src/hw_key.c

index f4f3223..14361bf 100755 (executable)
@@ -79,6 +79,7 @@ static Eina_Bool _launch_taskmgr_cb(void* data)
 
        if ((val1 == VCONFKEY_PM_STATE_NORMAL) && (val2 == VCONFKEY_IDLE_UNLOCK)) {
                _D("LCD ON, UNLOCK state => launch taskmgr");
+               syspopup_destroy_all();
                if (menu_daemon_open_app(TASKMGR_PKG_NAME) < 0)
                        _E("Failed to launch the taskmgr");
        } else {
@@ -102,6 +103,7 @@ static Eina_Bool _launch_by_home_key(void *data)
 
 inline static int _release_home_key(void)
 {
+       syspopup_destroy_all();
        retv_if(NULL == key_info.long_press, EXIT_SUCCESS);
        ecore_timer_del(key_info.long_press);
        key_info.long_press = NULL;
@@ -113,8 +115,6 @@ inline static int _release_home_key(void)
        ecore_timer_del(key_info.single_timer);
        key_info.single_timer = NULL;
 
-       syspopup_destroy_all();
-
        return EXIT_SUCCESS;
 }