pui_sample: modify animation id(s) and fix log position 62/220662/1
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 21 Aug 2019 07:15:45 +0000 (16:15 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 20 Dec 2019 07:17:50 +0000 (16:17 +0900)
Change-Id: I8127c8f138c2fe15409d7aab8edd69343458492c
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
samples/PUI_sample.c

index 852ddda..0bf46a2 100644 (file)
@@ -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;