Fixed msg screen bug.
This commit is contained in:
parent
c59a619b51
commit
7c23947404
|
@ -1005,7 +1005,7 @@ void UIFlowPhoto_OnChildScrClose(lv_obj_t* obj, LV_USER_EVENT_NVTMSG_DATA* data)
|
||||||
}
|
}
|
||||||
|
|
||||||
set_indev_keypad_group(obj);
|
set_indev_keypad_group(obj);
|
||||||
|
// return;
|
||||||
switch (gPhotoData.State) {
|
switch (gPhotoData.State) {
|
||||||
case PHOTO_ST_WARNING_MENU:
|
case PHOTO_ST_WARNING_MENU:
|
||||||
|
|
||||||
|
|
|
@ -40,18 +40,21 @@ static void task_msgbox_timer_cb(lv_task_t* task)
|
||||||
UINT16 autoOffTime = sf_get_auto_off_time();
|
UINT16 autoOffTime = sf_get_auto_off_time();
|
||||||
const lv_plugin_string_t* string = lv_plugin_get_string(msgID);
|
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;
|
autoClose = autoClose - 1000;
|
||||||
if (0 == autoClose || autoOffTime <= 10)
|
if (0 == autoClose || autoOffTime <= 10)
|
||||||
{
|
{
|
||||||
lv_task_del(msgbox_timer);
|
lv_task_del(msgbox_timer);
|
||||||
msgbox_timer = NULL;
|
msgbox_timer = NULL;
|
||||||
lv_msgbox_start_auto_close(msgbox, 0);
|
if (msgbox)
|
||||||
|
{
|
||||||
|
lv_msgbox_start_auto_close(msgbox, 0);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(string){
|
||||||
|
snprintf(buf, BUF_LENGTH, "%s (%ds)\r\n", string->ptr, autoClose/1000);
|
||||||
|
lv_msgbox_set_text(msgbox, buf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// update_icons();
|
// update_icons();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -167,7 +167,6 @@ void sf_set_auto_off_time(UINT16 time)
|
||||||
|
|
||||||
UINT16 sf_get_auto_off_time(void)
|
UINT16 sf_get_auto_off_time(void)
|
||||||
{
|
{
|
||||||
printf("=================================KeepAliveTime_s = %d AutoOfftime = %d\n", KeepAliveTime_s, AutoOfftime);
|
|
||||||
return AutoOfftime;
|
return AutoOfftime;
|
||||||
}
|
}
|
||||||
void sf_set_keep_alive_time(unsigned int time_s)
|
void sf_set_keep_alive_time(unsigned int time_s)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user