Fixed bug number 10204.

This commit is contained in:
xiaojiazhu 2023-12-05 11:21:22 +08:00
parent 3f8febd903
commit a3015a5e1a
2 changed files with 12 additions and 10 deletions

View File

@ -1149,11 +1149,11 @@ static void UIFlowPhoto_OnExeZoomInStop(lv_obj_t* obj)
static void UIFlowPhoto_OnExeOpenPlayScreen(lv_obj_t* obj)
{
if (UIStorageCheck(STORAGE_CHECK_ERROR, NULL) == TRUE) {
gPhotoData.State = PHOTO_ST_WARNING_MENU;
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRID_PLEASE_INSERT_SD, 1000);
return;
}
// if (UIStorageCheck(STORAGE_CHECK_ERROR, NULL) == TRUE) {
// gPhotoData.State = PHOTO_ST_WARNING_MENU;
// UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRID_PLEASE_INSERT_SD, 1000);
// return;
// }
Ux_SendEvent(&CustomPhotoObjCtrl, NVTEVT_FORCETO_PLAYBACK_MODE, 0);
}
// static void UIFlowPhoto_OnExeZoomOutStart(lv_obj_t* obj)

View File

@ -926,7 +926,7 @@ static void UIFlowPlay_OpenFile(lv_obj_t* obj)
g_PlbData.State = PLB_ST_IDLE;
update_playicons(g_PlbData.State);
PBView_DrawNoFile();
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRID_NO_IMAGE, warn_msgbox_auto_close_ms);
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRING_NO_FILE, warn_msgbox_auto_close_ms);
g_bUIFlowWndPlayNoImgWndOpened = TRUE;
}
else
@ -977,11 +977,13 @@ static void UIFlowPlay_ScrOpen(lv_obj_t* obj)
set_indev_keypad_group(obj);
if (UIStorageCheck(STORAGE_CHECK_ERROR, NULL) == TRUE) {
PBView_DrawNoFile();
g_bUIFlowWndPlayNoImgWndOpened = TRUE;
/* never closed */
g_PlbData.State = PLB_ST_IDLE;
update_playicons(g_PlbData.State);
Ux_SendEvent(0, NVTEVT_SYSTEM_MODE, 1, PRIMARY_MODE_PHOTO);
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRID_PLEASE_INSERT_SD, 0);
// Ux_SendEvent(0, NVTEVT_SYSTEM_MODE, 1, PRIMARY_MODE_PHOTO);
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRING_NO_FILE, 3000);
return;
}
@ -1038,7 +1040,7 @@ static void UIFlowPlay_ChildScrClose(lv_obj_t* obj, const void * data)
//#NT#Support IVOT_N12144_CO-148_A
PBView_DrawNoFile();
//#NT#2023/11/14#Eric - end
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRID_NO_IMAGE, warn_msgbox_auto_close_ms);
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRING_NO_FILE, warn_msgbox_auto_close_ms);
g_bUIFlowWndPlayNoImgWndOpened = TRUE;
}
} else {
@ -1061,7 +1063,7 @@ static void UIFlowPlay_ChildScrClose(lv_obj_t* obj, const void * data)
//#NT#Support IVOT_N12144_CO-148_A
PBView_DrawNoFile();
//#NT#2023/11/14#Eric - end
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRID_NO_IMAGE, warn_msgbox_auto_close_ms);
UIFlowWrnMsgAPI_Open_StringID(LV_PLUGIN_STRING_ID_STRING_NO_FILE, warn_msgbox_auto_close_ms);
g_bUIFlowWndPlayNoImgWndOpened = TRUE;
}
}else{