From: Amritanshu Pandia Date: Thu, 11 Oct 2018 07:41:28 +0000 (+0530) Subject: [TBT][BluetoothGatt][NonACR][TFIVE-14725, fixed disconnected button enable issue] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40fa3c69bd152a2c280bbea4872bf6aae3cc327c;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][BluetoothGatt][NonACR][TFIVE-14725, fixed disconnected button enable issue] Change-Id: I16db2801fa98cd7c938341ff0e86e34784ecdc2f Signed-off-by: Amritanshu Pandia --- diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 35646ec..398a131 100755 Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index fec2441..57a3b95 100755 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ diff --git a/tbtcoreapp/src/view/tbt-bluetoothle-view.c b/tbtcoreapp/src/view/tbt-bluetoothle-view.c index f08f10b..6462ad0 100755 --- a/tbtcoreapp/src/view/tbt-bluetoothle-view.c +++ b/tbtcoreapp/src/view/tbt-bluetoothle-view.c @@ -581,8 +581,6 @@ static Evas_Object *add_control_layout(bluetoothle_view *this, Evas_Object *pare this->disconnect_btn = ui_utils_push_button_add(this, table, "Disconnect", _disconnect_button_pressed_cb); elm_table_pack(table, this->disconnect_btn, 1, 0, 1, 1); - elm_object_disabled_set(this->disconnect_btn, EINA_TRUE); - this->read_btn = ui_utils_push_button_add(this, table, "Read", _read_button_pressed_cb); elm_table_pack(table, this->read_btn, 2, 0, 1, 1); @@ -692,6 +690,7 @@ static void _control_button_pressed_cb(void *user_data, Evas_Object *obj, void * if(this->view->tbt_info->apptype == TBT_APP_BLE_GATT_CLIENT) { //Discover Bluetooth LE Devices + elm_object_disabled_set(this->disconnect_btn, EINA_TRUE); DBG("TBT Discovery Started..."); discover_bluetooth_le(this); DBG("TBT Discovery Completed..."); @@ -719,7 +718,7 @@ static void _disconnect_button_pressed_cb(void *user_data, Evas_Object *obj, voi DBG("remote_server_address %s", this->remote_server_address); result = bt_gatt_disconnect(this->remote_server_address); RETM_IF(result != BT_ERROR_NONE, "bt_gatt_disconnect failed --> error: %s", get_bluetooth_error(result)); - + elm_object_disabled_set(this->disconnect_btn, EINA_TRUE); } @@ -891,6 +890,7 @@ switch(state) elm_object_disabled_set(this->read_btn, EINA_TRUE); elm_object_disabled_set(this->write_btn, EINA_TRUE); elm_object_disabled_set(this->expand_btn, EINA_TRUE); + elm_object_disabled_set(this->disconnect_btn, EINA_FALSE); break; }