From: Seonah Moon Date: Tue, 6 Dec 2016 02:12:49 +0000 (+0900) Subject: [TSAM-10890] Disable toggle button when USB cable is disconnect X-Git-Tag: accepted/tizen/common/20161207.184106^0 X-Git-Url: http://review.tizen.org/git/?p=apps%2Fnative%2Fug-mobile-ap.git;a=commitdiff_plain;h=21d5a23be4ae607e5a1171aa8ff82dce9ce0a56b [TSAM-10890] Disable toggle button when USB cable is disconnect Change-Id: I101d8a6a7778494ebe03126e27efe0865d6faa41 Signed-off-by: Seonah Moon --- diff --git a/packaging/ug-setting-mobileap-efl.spec b/packaging/ug-setting-mobileap-efl.spec index 9d392fb..1c46277 100755 --- a/packaging/ug-setting-mobileap-efl.spec +++ b/packaging/ug-setting-mobileap-efl.spec @@ -3,7 +3,7 @@ Name: ug-setting-mobileap-efl Summary: Tethering UI Gadget Library -Version: 1.0.154 +Version: 1.0.155 Release: 1 Group: App/Network License: Flora-1.1 diff --git a/src/mh_common_utility.c b/src/mh_common_utility.c index b94a65a..5dcd2b8 100644 --- a/src/mh_common_utility.c +++ b/src/mh_common_utility.c @@ -285,7 +285,7 @@ void _handle_usb_status_change(keynode_t *key, void *data) if (vconf_key == SETTING_USB_NONE_MODE) return; - if (vconf_key != VCONFKEY_SYSMAN_USB_AVAILABLE) { + if (vconf_key == VCONFKEY_SYSMAN_USB_DISCONNECTED) { if (ad->type == TETHERING_TYPE_USB && ad->popup) { evas_object_del(ad->popup); ad->popup = NULL; diff --git a/src/mh_popup.c b/src/mh_popup.c index 7026576..0774778 100755 --- a/src/mh_popup.c +++ b/src/mh_popup.c @@ -115,7 +115,7 @@ static void __handle_popup_resp(void *data, bool response) if (state) _set_checkbox_status(TETHERING_TYPE_USB, 1); - if (_get_vconf_usb_state() != VCONFKEY_SYSMAN_USB_AVAILABLE) { + if (_get_vconf_usb_state() == VCONFKEY_SYSMAN_USB_DISCONNECTED) { _update_tethering_item(ad, MH_STATE_NONE); break; } diff --git a/src/mh_view_main.c b/src/mh_view_main.c index 89ed31e..effd605 100755 --- a/src/mh_view_main.c +++ b/src/mh_view_main.c @@ -431,7 +431,7 @@ void _update_main_view(mh_appdata_t *ad, tethering_type_e type) elm_object_item_disabled_set(ad->main.setup_item, EINA_FALSE); if (ad->main.bt_item) elm_object_item_disabled_set(ad->main.bt_item, EINA_FALSE); - if (_get_vconf_usb_state() != VCONFKEY_SYSMAN_USB_AVAILABLE) { + if (_get_vconf_usb_state() == VCONFKEY_SYSMAN_USB_DISCONNECTED) { if (ad->main.usb_item) elm_object_item_disabled_set(ad->main.usb_item, EINA_TRUE); } else { @@ -1282,7 +1282,7 @@ static void __create_inner_contents(mh_appdata_t *ad) ad, NULL, ELM_GENLIST_ITEM_NONE, __select_usb_item, ad); ad->main.usb_item = item; - if (_get_vconf_usb_state() != VCONFKEY_SYSMAN_USB_AVAILABLE) { + if (_get_vconf_usb_state() == VCONFKEY_SYSMAN_USB_DISCONNECTED) { if (ad->main.usb_item) elm_object_item_disabled_set(ad->main.usb_item, EINA_TRUE); } else {