From 1d6012480477b7f8a2dcf386807ac61e83902fe1 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 21 Aug 2019 16:15:45 +0900 Subject: [PATCH] pui_sample: modify animation id(s) and fix log position Change-Id: I8127c8f138c2fe15409d7aab8edd69343458492c Signed-off-by: Sung-Jin Park --- samples/PUI_sample.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/PUI_sample.c b/samples/PUI_sample.c index 852ddda..0bf46a2 100644 --- a/samples/PUI_sample.c +++ b/samples/PUI_sample.c @@ -36,11 +36,11 @@ struct app_data static Eina_Array *_ecore_event_hdls = NULL; static animation_t ani_collection[] = { - { "bixby_listening", PUI_ANI_CMD_START, 1 }, - { "bixby_processing", PUI_ANI_CMD_START, -1 }, - { "bixby_speaking", PUI_ANI_CMD_START, -1 }, + { "alarm calm", PUI_ANI_CMD_START, 1 }, + { "bixby listening", PUI_ANI_CMD_START, -1 }, + { "bixby speaking", PUI_ANI_CMD_START, -1 }, { "bixby_error", PUI_ANI_CMD_START, 1 }, - { "alarm", PUI_ANI_CMD_START, -1 }, + { "blinking", PUI_ANI_CMD_START, -1 }, { "notification", PUI_ANI_CMD_START, -1 }, }; @@ -49,6 +49,8 @@ ani_stop(app_data_t *app) { pui_error e = PUI_ERROR_NONE; + debug_info("Animation(%s) will be stopped !\n", pui_ani_get_id(app->ani_h)); + /* stop animation running already */ e = pui_ani_control(app->ani_h, PUI_ANI_CMD_STOP, 0); @@ -57,8 +59,6 @@ ani_stop(app_data_t *app) debug_error("Failed on stopping an animation !(cmd:%d, repeat:%d)\n", PUI_ANI_CMD_STOP, 0); return; } - - debug_info("Animation(%s) will be stopped !\n", pui_ani_get_id(app->ani_h)); } static void @@ -105,6 +105,8 @@ ani_collection_play(app_data_t *app) app->ani_h = ani_h; + debug_info("Animation(%s) will be started !\n", pui_ani_get_id(app->ani_h)); + /* play animation */ e = pui_ani_control(app->ani_h, PUI_ANI_CMD_START, ani_collection[ani_idx].repeat); @@ -114,8 +116,6 @@ ani_collection_play(app_data_t *app) return; } - debug_info("Animation(%s) will be started !\n", pui_ani_get_id(app->ani_h)); - if (++ani_idx >= n_animation) ani_idx = 0; -- 2.7.4