From 2abc9b214b5e878f21ac12aa33bcfb8f20129da4 Mon Sep 17 00:00:00 2001 From: Gabor Date: Mon, 8 May 2017 11:21:33 +0200 Subject: [PATCH] Minor update --- lv_app/lv_app_util/lv_app_notice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lv_app/lv_app_util/lv_app_notice.c b/lv_app/lv_app_util/lv_app_notice.c index e30eaf33a..3d649a199 100644 --- a/lv_app/lv_app_util/lv_app_notice.c +++ b/lv_app/lv_app_util/lv_app_notice.c @@ -85,11 +85,11 @@ lv_obj_t * lv_app_notice_add(const char * format, ...) lv_obj_t * mbox; mbox = lv_mbox_create(notice_h, NULL); - // lv_obj_set_style(mbox, lv_mboxs_get(LV_MBOXS_INFO, NULL)); lv_mbox_set_text(mbox, txt); + lv_mbox_set_anim_close_time(mbox, LV_APP_NOTICE_CLOSE_ANIM_TIME); #if LV_APP_NOTICE_SHOW_TIME != 0 - lv_mbox_start_auto_close(mbox, LV_APP_NOTICE_SHOW_TIME, LV_APP_NOTICE_CLOSE_ANIM_TIME); + lv_mbox_start_auto_close(mbox, LV_APP_NOTICE_SHOW_TIME); #endif /*Delete the last children if there are too many*/