Fixed msg screen bug.

This commit is contained in:
xiaojiazhu 2023-11-14 19:21:09 +08:00
parent c59a619b51
commit 7c23947404
3 changed files with 9 additions and 7 deletions

View File

@ -1005,7 +1005,7 @@ void UIFlowPhoto_OnChildScrClose(lv_obj_t* obj, LV_USER_EVENT_NVTMSG_DATA* data)
}
set_indev_keypad_group(obj);
// return;
switch (gPhotoData.State) {
case PHOTO_ST_WARNING_MENU:

View File

@ -40,18 +40,21 @@ static void task_msgbox_timer_cb(lv_task_t* task)
UINT16 autoOffTime = sf_get_auto_off_time();
const lv_plugin_string_t* string = lv_plugin_get_string(msgID);
if(string){
snprintf(buf, BUF_LENGTH, "%s (%ds)\r\n", string->ptr, autoClose/1000);
lv_msgbox_set_text(msgbox, buf);
}
autoClose = autoClose - 1000;
if (0 == autoClose || autoOffTime <= 10)
{
lv_task_del(msgbox_timer);
msgbox_timer = NULL;
lv_msgbox_start_auto_close(msgbox, 0);
if (msgbox)
{
lv_msgbox_start_auto_close(msgbox, 0);
}
return;
}
if(string){
snprintf(buf, BUF_LENGTH, "%s (%ds)\r\n", string->ptr, autoClose/1000);
lv_msgbox_set_text(msgbox, buf);
}
}
// update_icons();
return;

View File

@ -167,7 +167,6 @@ void sf_set_auto_off_time(UINT16 time)
UINT16 sf_get_auto_off_time(void)
{
printf("=================================KeepAliveTime_s = %d AutoOfftime = %d\n", KeepAliveTime_s, AutoOfftime);
return AutoOfftime;
}
void sf_set_keep_alive_time(unsigned int time_s)