It doesn't need to create appdata when it already exists 49/76249/2
authorhyunuktak <hyunuk.tak@samsung.com>
Thu, 23 Jun 2016 07:54:07 +0000 (16:54 +0900)
committerhyunuk tak <hyunuk.tak@samsung.com>
Thu, 23 Jun 2016 07:55:29 +0000 (00:55 -0700)
for TSAM-2525

Change-Id: Iaf7774b473c5cb5e0c10f8dc29ca99a29f7216d5
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/wifi-efl-ug.spec
sources/ui-gadget/wifi-efl-UG.c

index 054b612..4298098 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.179
+Version:       1.0.180
 Release:       1
 Group:         App/Network
 License:       Flora-1.1
index c7c08f5..8da98c1 100755 (executable)
@@ -118,6 +118,11 @@ static void *on_create(ui_gadget_h ug, enum ug_mode mode,
                return NULL;
        }
 
+       if(ug_app_state) {
+               INFO_LOG(UG_NAME_NORMAL, "ug_app_state already exists");
+               return ug_app_state->layout_main;
+       }
+
        ug_app_state = g_new0(wifi_appdata, 1);
        retvm_if(NULL == ug_app_state, NULL);