From: sungwook79.park Date: Mon, 21 Aug 2017 10:27:33 +0000 (+0900) Subject: Fix issue that Black screen displayed when exiting Voice input screen X-Git-Tag: accepted/tizen/4.0/unified/20170829.020421~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F145132%2F2;p=platform%2Fcore%2Fuifw%2Finputdelegator.git Fix issue that Black screen displayed when exiting Voice input screen Change-Id: I965ceca6ae0527cefffbeaa6b25093be1f8461e4 Signed-off-by: sungwook79.park --- diff --git a/src/MoreOption.cpp b/src/MoreOption.cpp index 5159e0c..7550d75 100755 --- a/src/MoreOption.cpp +++ b/src/MoreOption.cpp @@ -131,7 +131,7 @@ void MoreOption::SetContentLayout(Evas_Object *content) { MoreOption *opt = (MoreOption *)data; VoiceData *vd = (VoiceData *) opt->voicedata; - if(vd->disclaimer == 1){ + if(vd->disclaimer == 1){ PRINTFUNC(DLOG_ERROR, "pop to top"); //inb case of (selector view -> disclaimer view-> stt view) if(opt->option_opened == EINA_FALSE){ diff --git a/src/w-input-stt-voice.cpp b/src/w-input-stt-voice.cpp index 77b8bb1..d39c87c 100755 --- a/src/w-input-stt-voice.cpp +++ b/src/w-input-stt-voice.cpp @@ -1631,6 +1631,13 @@ static Evas_Object *create_progressbar(Evas_Object *parent) return progressbar; } +static Eina_Bool _custom_back_cb(void *data, Elm_Object_Item *it) +{ + PRINTFUNC(DLOG_DEBUG, ""); + _back_to_genlist_for_selector(); + return EINA_TRUE; +} + static Evas_Object *create_fullview(Evas_Object *parent, VoiceData *r_voicedata) { PRINTFUNC(NO_PRINT, ""); @@ -1694,7 +1701,6 @@ static Evas_Object *create_fullview(Evas_Object *parent, VoiceData *r_voicedata) elm_object_part_content_set(layout_main, "EFFECT_BG", canvas); - // MIC Button Evas_Object *m_mic_button = elm_button_add(layout_main); elm_object_style_set(m_mic_button, "vic/micbutton"); @@ -1795,10 +1801,9 @@ int init_voicedata(VoiceData *r_voicedata) voicedata->btn_disabling_timer = NULL; voicedata->power_unlock_timer = NULL; - voicedata->stt_results.clear(); voicedata->partial_result = NULL; voicedata->result_type = 0; - voicedata->disclaimer = 0; + voicedata->disclaimer = 1; voicedata->mo = NULL; voicedata->sttfeedback = NULL; voicedata->sttmanager = NULL; @@ -1866,6 +1871,12 @@ static Eina_Bool init_view(void *data) if(voicedata == NULL) return ECORE_CALLBACK_CANCEL; + const char *item_style = NULL; + if (_WEARABLE) + item_style = "empty"; + Elm_Object_Item *nf_voice_item = elm_naviframe_item_push(voicedata->naviframe, NULL, NULL, NULL, NULL, item_style); + elm_naviframe_item_pop_cb_set(nf_voice_item, _custom_back_cb, NULL); + voicedata->layout_main = create_fullview(voicedata->naviframe, voicedata); if (voicedata->layout_main) {