Fix bug for click event 17/88617/1 accepted/tizen/common/20160920.131741 accepted/tizen/ivi/20160920.231403 accepted/tizen/mobile/20160920.231314 accepted/tizen/tv/20160920.231328 accepted/tizen/wearable/20160920.231347 submit/tizen/20160919.105405
authorKwangyoun Kim <ky85.kim@samsung.com>
Tue, 20 Sep 2016 04:33:11 +0000 (13:33 +0900)
committerKwangyoun Kim <ky85.kim@samsung.com>
Tue, 20 Sep 2016 04:33:11 +0000 (13:33 +0900)
Change-Id: I0445c7e7171bd914bb2d03c28957cf24157a9293

src/vc_elm_core.c

index 284ad3d..fd7c2d9 100644 (file)
@@ -324,7 +324,7 @@ Eina_Bool _recognize_command(const char *cmd, const char *param1, const char *pa
                                                                                                        Elm_Object_Item* item = elm_genlist_at_xy_item_get((Evas_Object*)(grand_info->address), x + w/2, y + h/2, NULL);
                                                                                                        if (NULL != item && EINA_FALSE == elm_object_item_disabled_get(item)) {
                                                                                                                VC_ELM_LOG_DBG("Click event");
-                                                                                                               if (EINA_TRUE == elm_object_item_focus_get((Evas_Object*)grand_info->address)) {
+                                                                                                               if (EINA_TRUE == elm_object_item_focus_get(item)) {
                                                                                                                        VC_ELM_LOG_DBG("Already focused");
                                                                                                                        ecore_timer_add(0.5, __click_event, NULL);
                                                                                                                } else {
@@ -336,7 +336,7 @@ Eina_Bool _recognize_command(const char *cmd, const char *param1, const char *pa
                                                                                                                item = elm_genlist_at_xy_item_get((Evas_Object*)(grand_info->address), x + w + w/2, y + h/2, NULL);
                                                                                                                if (NULL != item && EINA_FALSE == elm_object_item_disabled_get(item)) {
                                                                                                                        VC_ELM_LOG_DBG("Click event 2");
-                                                                                                                       if (EINA_TRUE == elm_object_item_focus_get((Evas_Object*)grand_info->address)) {
+                                                                                                                       if (EINA_TRUE == elm_object_item_focus_get(item)) {
                                                                                                                                VC_ELM_LOG_DBG("Already focused");
                                                                                                                                ecore_timer_add(0.5, __click_event, NULL);
                                                                                                                        } else {