Donot show scan list when scan is not triggered by user. 73/93473/3
authorNishant Chaprana <n.chaprana@samsung.com>
Mon, 24 Oct 2016 10:46:51 +0000 (16:16 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Tue, 25 Oct 2016 02:01:15 +0000 (19:01 -0700)
@fix TSAM-9273

Change-Id: Ib3520717115e73ad6f22400a732f06c6974e2fb0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/wifi-efl-ug.spec
sources/wearable/src/wearable-circle/app_main.c

index 14e79a8..e9b2fa5 100644 (file)
@@ -1,7 +1,7 @@
 %define _unpackaged_files_terminate_build 0
 Name:          wifi-efl-ug
 Summary:       Wi-Fi UI Gadget for TIZEN
-Version:       1.0.207
+Version:       1.0.208
 Release:       1
 Group:         App/Network
 License:       Flora-1.1
index d987c98..b1a1c24 100755 (executable)
@@ -309,11 +309,6 @@ static void __wifi_manager_scan_finished_cb(wifi_manager_object *manager,
        }
 
        app_obj->is_scan_finished = TRUE;
-       if (app_obj->popup_scanning) {
-               popup_scanning_destroy(app_obj->popup_scanning);
-               popup_scanning_free(app_obj->popup_scanning);
-               app_obj->popup_scanning = NULL;
-       }
 
        if (error_code != WIFI_ERROR_NONE) {
                WIFI_LOG_ERR("Wi-Fi Scan failed. error code = %s",
@@ -321,7 +316,12 @@ static void __wifi_manager_scan_finished_cb(wifi_manager_object *manager,
                return;
        }
 
-       _scan_ap_list_update_and_show(app_obj);
+       if (app_obj->popup_scanning) {
+               popup_scanning_destroy(app_obj->popup_scanning);
+               popup_scanning_free(app_obj->popup_scanning);
+               app_obj->popup_scanning = NULL;
+               _scan_ap_list_update_and_show(app_obj);
+       }
 }
 
 static gboolean __wifi_manager_scan_start(app_object *app_obj, gboolean is_first_scan)