From: Oskar Chodowicz Date: Wed, 6 Feb 2019 11:43:44 +0000 (+0100) Subject: Set all widgets defaultly visible X-Git-Tag: submit/tizen/20190311.042353~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F199165%2F12;p=profile%2Fmobile%2Fapps%2Fnative%2Faccessibility-setting.git Set all widgets defaultly visible Change-Id: I8d4f391015c985db8ec4d07042107697e2030781 --- diff --git a/src/AccessoriesSwitchesPage.cpp b/src/AccessoriesSwitchesPage.cpp index 47d414e..f833c25 100644 --- a/src/AccessoriesSwitchesPage.cpp +++ b/src/AccessoriesSwitchesPage.cpp @@ -28,7 +28,6 @@ AccessoriesSwitchesPage::AccessoriesSwitchesPage(SettingAccessibility *ad) auto naviframe = context_->md.getNaviframe(); auto layout = Widget::make(naviframe, EDJ_ACCESSORY, GRP_ACCESSORY); layout->setText(PRT_ACCESSORY_LABEL, "IDS_ACCS_UNIVERSAL_SWITCH_ADD_SWITCH_ACCESSORIES_DESC"); - layout->show(); naviframe->pushBack("IDS_ACCS_UNIVERSAL_SWITCH_ADD_SWITCH_ACCESSORIES_TITLE", layout, {}, [this]() { setting_accessibility_universal_switch_dbus_config_cancelCaptureSwitch(&context_->config); @@ -39,7 +38,6 @@ AccessoriesSwitchesPage::AccessoriesSwitchesPage(SettingAccessibility *ad) naviframe->popBack(); }); prevBtn->setStyle(Button::BACK_BUTTON_ARROW_STYLE); - prevBtn->show(); layout->setPartContent("prev_btn", prevBtn); context_->us_configuration.switch_id = {}; @@ -74,13 +72,11 @@ void AccessoriesSwitchesPage::newSwitchPopup() popup->setEextEventCallback(EEXT_CALLBACK_BACK, []() {}); auto layout = Widget::make(popup, EDJ_ACCESSORY_POPUP, GRP_ACCESSORY_POPUP); - layout->show(); popup->setContent(layout); auto entry = Widget::make(layout); entry->setWeightHint(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); entry->setPartText("guide", "IDS_ACCS_UNIVERSAL_SWITCH_ADD_SWITCH_NAME"); - entry->show(); layout->setPartContent(PRT_ACCESSORY_POPUP_ENTRY, entry); auto cancelBtnCb = [popup, this]() { @@ -91,7 +87,6 @@ void AccessoriesSwitchesPage::newSwitchPopup() auto cancelBtn = Widget::make