From: Jihoon Kim Date: Sun, 16 Oct 2016 10:02:01 +0000 (+0900) Subject: Show error popup in case of no connection in voice mode X-Git-Tag: accepted/tizen/common/20161017.170411~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cf02ff8bb4affa1cd20bbb149fb0c8b33a3cfe3;p=platform%2Fcore%2Fuifw%2Fise-default.git Show error popup in case of no connection in voice mode Change-Id: Ib37cc0aee41a710fafa64be211267a651428bce6 Signed-off-by: Jihoon Kim --- diff --git a/src/SttFeedback.cpp b/src/SttFeedback.cpp index b82333d..129350b 100644 --- a/src/SttFeedback.cpp +++ b/src/SttFeedback.cpp @@ -167,7 +167,7 @@ void SttFeedback::OnError(stt_error_e reason) VoiceData& vd = *((VoiceData *) owner); - LOGD("error = %d\n", reason); + LOGW("error = %d\n", reason); vd.state = STT_STATE_VAL_INIT; set_animation_state(&vd); show_error_message(&vd, reason); diff --git a/src/ise-stt-mode.cpp b/src/ise-stt-mode.cpp index 5b39d11..1ebdca7 100644 --- a/src/ise-stt-mode.cpp +++ b/src/ise-stt-mode.cpp @@ -153,6 +153,8 @@ void show_popup_toast(const char *text, bool check_img) popup = elm_popup_add(win_main); #ifdef _CIRCLE elm_object_style_set(popup, "toast/circle"); +#else + elm_object_style_set(popup, "toast"); #endif elm_popup_orient_set(popup, ELM_POPUP_ORIENT_BOTTOM); evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -167,7 +169,11 @@ void show_popup_toast(const char *text, bool check_img) } if (text) { +#ifdef _CIRCLE elm_object_part_text_set(popup, "elm.text", text); +#else + elm_object_text_set(popup, text); +#endif } eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, _popup_back_cb, NULL); @@ -175,6 +181,7 @@ void show_popup_toast(const char *text, bool check_img) evas_object_smart_callback_add(popup, "block,clicked", _popup_back_cb, NULL); elm_popup_timeout_set(popup, 2.0); + evas_object_layer_set(popup, 32001); evas_object_show(popup); } @@ -552,6 +559,8 @@ Evas_Object *create_fullview(Evas_Object *win, VoiceData *r_voicedata) int ret; init_customizing_theme(); + win_main = win; + Evas_Object *layout_main = elm_layout_add(win); evas_object_size_hint_weight_set(layout_main, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(layout_main, EVAS_HINT_FILL, EVAS_HINT_FILL);