From ff1c39c6eafb07cf5762307dba989b33a527de7c Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Thu, 4 Jan 2018 17:05:06 +0900 Subject: [PATCH] Support to execute explicitly input_reply, input_recording, input_drawing with APP_CONTROL_DATA_INPUT_TYPE Change-Id: Ic5904686aec84e3fec820a280f4f262b892e4b9a Signed-off-by: sungwook79.park --- src/w-input-selector.cpp | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/w-input-selector.cpp b/src/w-input-selector.cpp index 51a15af..f23a596 100755 --- a/src/w-input-selector.cpp +++ b/src/w-input-selector.cpp @@ -828,12 +828,13 @@ void _create_genlist_items(void* user_data) ELM_GENLIST_ITEM_NONE, NULL, NULL); - // 3 Buttons - it_title = elm_genlist_item_append(app_data->genlist, itc1, - NULL, NULL, - ELM_GENLIST_ITEM_NONE, - NULL, NULL); - + if (app_data->app_type != APP_TYPE_REPLY) { + // 3 Buttons + it_title = elm_genlist_item_append(app_data->genlist, itc1, + NULL, NULL, + ELM_GENLIST_ITEM_NONE, + NULL, NULL); + } elm_genlist_item_select_mode_set(it_title, ELM_OBJECT_SELECT_MODE_NONE); g_template_item_size = _update_template_items(app_data); @@ -1277,6 +1278,10 @@ void _app_service(app_control_h service, void* user_data) app_data->app_type = APP_TYPE_STT; _stt_clicked_cb((void *)app_data, NULL, NULL); goto ACTIVATE; + } else if (!strcmp(context, "input_recording")) { + app_data->app_type = APP_TYPE_RECORDING; + _stt_clicked_cb((void *)app_data, NULL, NULL); + goto ACTIVATE; } else if (!strcmp(context, "input_emoticon")) { app_data->app_type = APP_TYPE_EMOTICON; _emoticon_clicked_cb((void *)app_data, NULL, NULL); @@ -1286,6 +1291,10 @@ void _app_service(app_control_h service, void* user_data) input_keyboard_init(service); _keyboard_clicked_cb((void *)app_data, NULL, NULL); goto ACTIVATE; + } else if (!strcmp(context, "input_drawing")) { + app_data->app_type = APP_TYPE_DRAWING; + _drawing_item_clicked_cb((void *)app_data, NULL, NULL); + goto ACTIVATE; } else if (!strcmp(context, "input_reply")) { app_data->app_type = APP_TYPE_REPLY; } -- 2.7.4