[TSAM-10367] Fixed rotary activate issue when wps progress destroyed 50/102150/1 accepted/tizen/common/20161205.135952 accepted/tizen/ivi/20161205.233455 accepted/tizen/mobile/20161205.233359 accepted/tizen/tv/20161205.233422 accepted/tizen/wearable/20161205.233437 submit/tizen/20161205.073011
authorMilind Murhekar <m.murhekar@samsung.com>
Mon, 5 Dec 2016 05:52:22 +0000 (11:22 +0530)
committerMilind Murhekar <m.murhekar@samsung.com>
Mon, 5 Dec 2016 05:52:22 +0000 (11:22 +0530)
Description: This fixes the rotary issue when user cancels
the wps progress or when wps progress scan completes.

Fix:
App should not destroy the callback method before it is
called by EFL framework.

Change-Id: I9f5f5d7d98530b16ee98690abd6a4a513e841677
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
sources/wearable/src/wearable-circle/view/layout_wps_progress.c

index 18a7263..2cebc85 100755 (executable)
@@ -64,10 +64,9 @@ static void __response_cb(void *data, Evas_Object *obj, void *event_info)
 {
        if (!data) return;
        layout_wps_progress_object *self = data;
-       elm_popup_dismiss(self->popup);
 
        /* TODO: It will be removed */
-       layout_wps_progress_destroy(self);
+       layout_wps_progress_dismiss(self);
 }
 
 static Eina_Bool __progress_timer_task_cb(void *data)
@@ -345,9 +344,6 @@ void layout_wps_progress_dismiss(layout_wps_progress_object *self)
        WIFI_RET_IF_FAIL(self->popup != NULL);
 
        elm_popup_dismiss(self->popup);
-
-       /* TODO: It will be removed */
-       layout_wps_progress_destroy(self);
 }
 
 void layout_wps_progress_activate_rotary_event(layout_wps_progress_object *self)