Show error popup in case of no connection in voice mode 95/92395/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Sun, 16 Oct 2016 10:02:01 +0000 (19:02 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Sun, 16 Oct 2016 23:31:11 +0000 (08:31 +0900)
Change-Id: Ib37cc0aee41a710fafa64be211267a651428bce6
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/SttFeedback.cpp
src/ise-stt-mode.cpp

index b82333d..129350b 100644 (file)
@@ -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);
index 5b39d11..1ebdca7 100644 (file)
@@ -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);