From 349063d7f80c709ed7ab95803c69bae33fb7f07b Mon Sep 17 00:00:00 2001 From: dyamy-lee Date: Fri, 6 Nov 2020 12:58:48 +0900 Subject: [PATCH] fota_gui - common, wearable : when it get 100 percent, it goes directly. Change-Id: I03220262d87b559b59b8c8a57c8036845b360891 --- fota_gui_common/fota_gr_direct_ro_common.c | 9 ++++++--- fota_gui_wearable/fota_gr_direct_ro_wearable.c | 10 ++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/fota_gui_common/fota_gr_direct_ro_common.c b/fota_gui_common/fota_gr_direct_ro_common.c index a685fa4..53d7d0d 100644 --- a/fota_gui_common/fota_gr_direct_ro_common.c +++ b/fota_gui_common/fota_gr_direct_ro_common.c @@ -384,9 +384,12 @@ static void _gr_direct_progress_bar(FbInfo *fbi, int progress) s_saved_percent = prog_pre; - count++; - if (count > 3) - break; + if(progress != 100) + { + count++; + if (count > 3) + break; + } } } diff --git a/fota_gui_wearable/fota_gr_direct_ro_wearable.c b/fota_gui_wearable/fota_gr_direct_ro_wearable.c index 3f79bc7..6342edc 100644 --- a/fota_gui_wearable/fota_gr_direct_ro_wearable.c +++ b/fota_gui_wearable/fota_gr_direct_ro_wearable.c @@ -386,10 +386,12 @@ static void _gr_direct_circle_progress_bar(FbInfo *fbi, int progress) release_png_res(); s_saved_percent = prog_pre; - count++; - - if (count > 3) - break; + if(progress != 100) + { + count++; + if (count > 3) + break; + } } } -- 2.34.1