Remove DPM codes 73/205873/1
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 10 May 2019 04:17:24 +0000 (13:17 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 10 May 2019 04:17:32 +0000 (13:17 +0900)
If DPM policy is changed to disallow Wi-Fi, Wi-Fi is turned off
automatically.
Therefore, app doesn't need to check DPM policy.

Change-Id: Idfd2449145f9ce5acaa4fa3d536d72dc6b42494e

packaging/wifi-efl-ug.spec
sources/libraries/Common/common_ip_info.c

index 3c4e7b5..d4bdb34 100644 (file)
@@ -1,6 +1,6 @@
 Name:          wifi-efl-ug
 Summary:       Wi-Fi UI Gadget for TIZEN
-Version:       1.0.238
+Version:       1.0.239
 Release:       1
 Group:         App/Network
 License:       Flora-1.1
index 2fc570b..b36b275 100755 (executable)
@@ -500,12 +500,6 @@ static Evas_Object *_ip_info_entry_item_content_get(void *data, Evas_Object *obj
        _ip_info_entry_add_callbacks(editfield, entry_info);
        elm_object_part_content_set(layout, "elm.swallow.content", editfield);
 
-#if 0 /* TODO: Apply DPM */
-       if (!net_get_device_policy_wifi_profile())
-               elm_object_disabled_set(editfield, EINA_TRUE);
-       else
-               elm_object_disabled_set(editfield, EINA_FALSE);
-#endif
        return layout;
 }
 
@@ -887,14 +881,6 @@ static void __ip_info_toggle_item_sel_cb(void* data,
                return;
        }
 
-#if 0 /* TODO: Apply DPM */
-       if (!net_get_device_policy_wifi_profile()) {
-               SECURE_DEBUG_LOG(UG_NAME_NORMAL, "Wifi profile device policy restricts");
-               __COMMON_FUNC_EXIT__;
-               return;
-       }
-#endif
-
        wifi_manager_ap_h ap = ip_info_list_data->ap;
 
        object_type = evas_object_type_get(obj);
@@ -1013,13 +999,6 @@ static Evas_Object *_ip_info_iptoggle_content_get(void *data,
                evas_object_size_hint_weight_set(toggle_btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
                evas_object_smart_callback_add(toggle_btn, "changed",
                                __ip_info_toggle_item_sel_cb, ip_data);
-
-#if 0 /* TODO: Apply DPM */
-               if (!net_get_device_policy_wifi_profile())
-                       elm_object_disabled_set(toggle_btn, EINA_TRUE);
-               else
-                       elm_object_disabled_set(toggle_btn, EINA_FALSE);
-#endif
        }
 
        __COMMON_FUNC_EXIT__;