Fixed bug number 9848.

This commit is contained in:
xiaojiazhu 2023-11-30 15:21:50 +08:00
parent e70f5a9f7a
commit 692ac34754
3 changed files with 9 additions and 9 deletions

View File

@ -1279,7 +1279,7 @@
"widget": "Image"
},
{
"align": "Right",
"align": "Left",
"class": "lv_label",
"click": false,
"drag": false,

View File

@ -1284,7 +1284,6 @@ lv_obj_t* UIFlowMovie_create(){
lv_plugin_label_allocate_ext_attr(label_rec_time);
lv_plugin_label_allocate_ext_attr(label_rec_time);
lv_plugin_label_set_font_type(label_rec_time, LV_PLUGIN_LANGUAGE_FONT_TYPE_0);
lv_label_set_align(label_rec_time, LV_LABEL_ALIGN_RIGHT);
lv_label_set_long_mode(label_rec_time, LV_LABEL_LONG_CROP);
lv_obj_set_pos(label_rec_time, 38, 10);
lv_obj_set_size(label_rec_time, 90, 30);

View File

@ -111,6 +111,7 @@ static void set_rec_status(bool status)
gMovData.State = MOV_ST_VIEW;
// lv_obj_set_hidden(container_movie_scr_uiflowmovie, false);
lv_obj_set_hidden(label_rec_time_scr_uiflowmovie, true);
lv_obj_set_hidden(image_rec_ellipse_scr_uiflowmovie, true);
FlowMovie_StopRec();
update_icons();
}
@ -151,13 +152,13 @@ static void update_date_time(void)
static void update_rec_ellipse(void)
{
if (get_rec_status()){
bool is_hidden = lv_obj_get_hidden(image_rec_ellipse_scr_uiflowmovie);
lv_obj_set_hidden(image_rec_ellipse_scr_uiflowmovie, !is_hidden);
}
else{
lv_obj_set_hidden(image_rec_ellipse_scr_uiflowmovie, true);
}
// if (get_rec_status()){
// bool is_hidden = lv_obj_get_hidden(image_rec_ellipse_scr_uiflowmovie);
// lv_obj_set_hidden(image_rec_ellipse_scr_uiflowmovie, !is_hidden);
// }
// else{
// lv_obj_set_hidden(image_rec_ellipse_scr_uiflowmovie, true);
// }
}
static void update_pim(void)