添加回放界面设置菜单

This commit is contained in:
xiehongyan 2023-12-30 15:00:17 +08:00
parent 0ca0cbaa30
commit be0cddbabf
5 changed files with 296 additions and 134 deletions

View File

@ -3285,6 +3285,68 @@
} }
], ],
"widget": "Container" "widget": "Container"
},
{
"class": "lv_cont",
"click": true,
"drag": false,
"event callback": "",
"geometry": {
"height": 40,
"width": 320,
"x": 5,
"y": 0
},
"hidden": true,
"layout": "Off",
"locked": false,
"name": "container_option_title",
"styles": [
{
"Background": {
"bg_color": "0x666666",
"bg_opa": 0
},
"Border": {
"border_color": "0xdddddd",
"border_opa": 0,
"border_width": 0
},
"Mix": {
"radius": 0
},
"Padding": {
"pad_inner": 5
},
"part": 0,
"state": 0
},
{
"part": 0,
"state": 1
},
{
"part": 0,
"state": 2
},
{
"part": 0,
"state": 3
},
{
"part": 0,
"state": 4
},
{
"part": 0,
"state": 5
},
{
"part": 0,
"state": 6
}
],
"widget": "Container"
} }
] ]
} }

View File

@ -59,6 +59,7 @@ lv_obj_t* image_option4_scr_uiflowplay;
lv_obj_t* image_button_option_5_scr_uiflowplay; lv_obj_t* image_button_option_5_scr_uiflowplay;
lv_obj_t* label_option5_scr_uiflowplay; lv_obj_t* label_option5_scr_uiflowplay;
lv_obj_t* image_option5_scr_uiflowplay; lv_obj_t* image_option5_scr_uiflowplay;
lv_obj_t* container_option_title_scr_uiflowplay;
lv_obj_t* UIFlowPlay_create(){ lv_obj_t* UIFlowPlay_create(){
lv_obj_t *parent = lv_plugin_scr_create(); lv_obj_t *parent = lv_plugin_scr_create();
@ -2857,5 +2858,44 @@ lv_obj_t* UIFlowPlay_create(){
image_option5_scr_uiflowplay = image_option5; image_option5_scr_uiflowplay = image_option5;
static lv_style_t container_option_title_s0;
lv_style_init(&container_option_title_s0);
lv_style_set_radius(&container_option_title_s0,LV_STATE_DEFAULT,0);
lv_style_set_pad_inner(&container_option_title_s0,LV_STATE_DEFAULT,5);
STYLE_COLOR_PROP(0x8b, 0x66, 0x66, 0x66) ; lv_style_set_bg_color(&container_option_title_s0, LV_STATE_DEFAULT, color);
lv_style_set_bg_opa(&container_option_title_s0,LV_STATE_DEFAULT,0);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_option_title_s0, LV_STATE_DEFAULT, color);
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_option_title_s0, LV_STATE_DEFAULT, color);
lv_style_set_border_opa(&container_option_title_s0,LV_STATE_DEFAULT,0);
lv_style_set_border_width(&container_option_title_s0,LV_STATE_DEFAULT,0);
STYLE_COLOR_PROP(0x8b, 0x66, 0x66, 0x66) ; lv_style_set_bg_color(&container_option_title_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_option_title_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_option_title_s0, LV_STATE_CHECKED, color);
STYLE_COLOR_PROP(0x8b, 0x66, 0x66, 0x66) ; lv_style_set_bg_color(&container_option_title_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_option_title_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_option_title_s0, LV_STATE_FOCUSED, color);
STYLE_COLOR_PROP(0x8b, 0x66, 0x66, 0x66) ; lv_style_set_bg_color(&container_option_title_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_option_title_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_option_title_s0, LV_STATE_EDITED, color);
STYLE_COLOR_PROP(0x8b, 0x66, 0x66, 0x66) ; lv_style_set_bg_color(&container_option_title_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_option_title_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_option_title_s0, LV_STATE_HOVERED, color);
STYLE_COLOR_PROP(0x8b, 0x66, 0x66, 0x66) ; lv_style_set_bg_color(&container_option_title_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_option_title_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_option_title_s0, LV_STATE_PRESSED, color);
STYLE_COLOR_PROP(0x8b, 0x66, 0x66, 0x66) ; lv_style_set_bg_color(&container_option_title_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0x02, 0xff, 0xff, 0xff) ; lv_style_set_bg_grad_color(&container_option_title_s0, LV_STATE_DISABLED, color);
STYLE_COLOR_PROP(0xe9, 0xdd, 0xdd, 0xdd) ; lv_style_set_border_color(&container_option_title_s0, LV_STATE_DISABLED, color);
lv_obj_t *container_option_title = lv_cont_create(parent, NULL);
lv_obj_set_hidden(container_option_title, true);
lv_obj_set_click(container_option_title, true);
lv_obj_set_drag(container_option_title, false);
lv_obj_set_pos(container_option_title, 5, 0);
lv_obj_set_size(container_option_title, 320, 40);
lv_obj_add_style(container_option_title, 0, &container_option_title_s0);
container_option_title_scr_uiflowplay = container_option_title;
return parent; return parent;
} }

View File

@ -67,6 +67,7 @@ extern lv_obj_t* image_option4_scr_uiflowplay;
extern lv_obj_t* image_button_option_5_scr_uiflowplay; extern lv_obj_t* image_button_option_5_scr_uiflowplay;
extern lv_obj_t* label_option5_scr_uiflowplay; extern lv_obj_t* label_option5_scr_uiflowplay;
extern lv_obj_t* image_option5_scr_uiflowplay; extern lv_obj_t* image_option5_scr_uiflowplay;
extern lv_obj_t* container_option_title_scr_uiflowplay;
/********************** /**********************
* GLOBAL PROTOTYPES * GLOBAL PROTOTYPES

View File

@ -28,7 +28,7 @@
//#define PLAY_KEY_RELEASE_MASK FLGKEY_KEY_MASK_NULL//(FLGKEY_UP | FLGKEY_DOWN | FLGKEY_LEFT | FLGKEY_RIGHT) //#define PLAY_KEY_RELEASE_MASK FLGKEY_KEY_MASK_NULL//(FLGKEY_UP | FLGKEY_DOWN | FLGKEY_LEFT | FLGKEY_RIGHT)
//#define PLAY_KEY_CONTINUE_MASK FLGKEY_KEY_CONT_MASK_DEFAULT //#define PLAY_KEY_CONTINUE_MASK FLGKEY_KEY_CONT_MASK_DEFAULT
static lv_obj_t* pMenu = NULL; //static lv_obj_t* pMenu = NULL;
enum SELECTION_SHOW enum SELECTION_SHOW
{ {
SELECTION_SHOW_TURE = 0, SELECTION_SHOW_TURE = 0,
@ -75,112 +75,155 @@ extern uint16_t warn_msgbox_auto_close_ms;
//static lv_obj_t* curr_pressbtn; //static lv_obj_t* curr_pressbtn;
#define ITEMS_PER_PAGE 5 #define ITEMS_PER_PAGE 5
void init_bar(void)
{
lv_obj_set_state(container_option_title_scr_uiflowplay, LV_STATE_DEFAULT);
lv_obj_set_hidden(container_option_title_scr_uiflowplay, false);
}
void hidde_bar(void)
{
lv_obj_set_hidden(container_option_title_scr_uiflowplay, true);
}
static void update_play_Selection_msg(lv_obj_t* obj) static void update_play_Selection_msg(lv_obj_t* obj)
{ {
for(int i = 0; i < ITEMS_PER_PAGE; i++) for(int i = 0; i < ITEMS_PER_PAGE; i++)
{ {
if(i == 0){ if (i == 2)
if (ProfileFocused == i) { {
lv_obj_set_state(image_button_option_1_scr_uiflowplay, LV_STATE_FOCUSED);
lv_obj_set_state(label_option1_scr_uiflowplay, LV_STATE_FOCUSED);
// lv_obj_set_hidden(image_option1_scr_uiflowplay, false);
lv_plugin_img_set_src(image_option1_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_LIST_SELECTED_NEXT2);
lv_obj_set_pos(image_option1_scr_uiflowplay, 259, 0);
} else {
lv_obj_set_state(image_button_option_1_scr_uiflowplay, LV_STATE_DEFAULT);
lv_obj_set_state(label_option1_scr_uiflowplay, LV_STATE_DEFAULT);
// lv_obj_set_hidden(image_option1_scr_uiflowplay, false);
lv_plugin_img_set_src(image_option1_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_NEXT1);
lv_obj_set_pos(image_option1_scr_uiflowplay, 288, 0);
}
} else if(i == 1){
if (ProfileFocused == i) {
lv_obj_set_state(image_button_option_2_scr_uiflowplay, LV_STATE_FOCUSED);
lv_obj_set_state(label_option2_scr_uiflowplay, LV_STATE_FOCUSED);
// lv_obj_set_hidden(image_option2_scr_uiflowplay, false);
lv_plugin_img_set_src(image_option2_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_LIST_SELECTED_NEXT2);
lv_obj_set_pos(image_option2_scr_uiflowplay, 259, 0);
} else {
lv_obj_set_state(image_button_option_2_scr_uiflowplay, LV_STATE_DEFAULT);
lv_obj_set_state(label_option2_scr_uiflowplay, LV_STATE_DEFAULT);
// lv_obj_set_hidden(image_option2_scr_uiflowplay, false);
lv_plugin_img_set_src(image_option2_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_NEXT1);
lv_obj_set_pos(image_option2_scr_uiflowplay, 288, 0);
}
}else if(i == 2){
if (ProfileFocused == i) { if (ProfileFocused == i) {
lv_obj_set_state(image_button_option_3_scr_uiflowplay, LV_STATE_FOCUSED); lv_obj_set_state(image_button_option_3_scr_uiflowplay, LV_STATE_FOCUSED);
} else { } else {
lv_obj_set_state(image_button_option_3_scr_uiflowplay, LV_STATE_DEFAULT); lv_obj_set_state(image_button_option_3_scr_uiflowplay, LV_STATE_DEFAULT);
} }
}else if(i == 3){ }
else if (i == 3)
{
if (ProfileFocused == i) { if (ProfileFocused == i) {
lv_obj_set_state(image_button_option_4_scr_uiflowplay, LV_STATE_FOCUSED); lv_obj_set_state(image_button_option_4_scr_uiflowplay, LV_STATE_FOCUSED);
} else { } else {
lv_obj_set_state(image_button_option_4_scr_uiflowplay, LV_STATE_DEFAULT); lv_obj_set_state(image_button_option_4_scr_uiflowplay, LV_STATE_DEFAULT);
} }
}else if(i == 4){ }
else if (i == 4)
{
if (ProfileFocused == i) { if (ProfileFocused == i) {
lv_obj_set_state(image_button_option_5_scr_uiflowplay, LV_STATE_FOCUSED); lv_obj_set_state(image_button_option_5_scr_uiflowplay, LV_STATE_FOCUSED);
} else { } else {
lv_obj_set_state(image_button_option_5_scr_uiflowplay, LV_STATE_DEFAULT); lv_obj_set_state(image_button_option_5_scr_uiflowplay, LV_STATE_DEFAULT);
} }
} }
} else if (i == 0 && OPTION_PAGE_SELECT_FUNCTION == gOptionPage)
return; {
if(pMenu == NULL) if (ProfileFocused == i) {//focused and >
{ lv_obj_set_state(image_button_option_1_scr_uiflowplay, LV_STATE_FOCUSED);
printf("[error]Network Selection abnormal operation\n"); lv_obj_set_state(label_option1_scr_uiflowplay, LV_STATE_FOCUSED);
return;
}
if(ProfileFocused > PROFILE_MAX) lv_plugin_img_set_src(image_option1_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_NEXT2);
{ lv_obj_set_pos(image_option1_scr_uiflowplay, 288, 0);
printf("[error]ProfileFocused exceed the limit\n"); }
ProfileFocused = 0; else
} {
lv_obj_set_state(image_button_option_1_scr_uiflowplay, LV_STATE_DEFAULT);
lv_obj_set_state(label_option1_scr_uiflowplay, LV_STATE_DEFAULT);
int selectedPage = ProfileFocused / ITEMS_PER_PAGE; lv_plugin_img_set_src(image_option1_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_NEXT1);
int ishidden = 0; lv_obj_set_pos(image_option1_scr_uiflowplay, 288, 0);
}
lv_obj_set_hidden(image_option1_scr_uiflowplay, false);
}
else if (i == 1 && OPTION_PAGE_SELECT_FUNCTION == gOptionPage)
{
if (ProfileFocused == i) {//focused and >
lv_obj_set_state(image_button_option_2_scr_uiflowplay, LV_STATE_FOCUSED);
lv_obj_set_state(label_option2_scr_uiflowplay, LV_STATE_FOCUSED);
for(int i = 0; i < ITEMS_PER_PAGE; i++) lv_plugin_img_set_src(image_option2_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_NEXT2);
{ lv_obj_set_pos(image_option2_scr_uiflowplay, 288, 0);
// printf("i:%d data:%d\n", i, (IDS_NETWORK_SELECTION_1 + (ITEMS_PER_PAGE * selectedPage) + i)); }
lv_plugin_menu_set_item_string_id(pMenu, i, LV_PLUGIN_MENU_ITEM_VISIBLE_STATE_NUM, else
(IDS_NETWORK_SELECTION_1 + (ITEMS_PER_PAGE * selectedPage) + i)); {
lv_plugin_menu_set_item_img_id(pMenu, i, LV_PLUGIN_MENU_ITEM_STATE_DISABLED, LV_PLUGIN_IMG_ID_ICON_OK); lv_obj_set_state(image_button_option_2_scr_uiflowplay, LV_STATE_DEFAULT);
lv_obj_set_state(label_option2_scr_uiflowplay, LV_STATE_DEFAULT);
ishidden = true; lv_plugin_img_set_src(image_option2_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_NEXT1);
if((ITEMS_PER_PAGE * selectedPage) + i < ProfileTotal) lv_obj_set_pos(image_option2_scr_uiflowplay, 288, 0);
{ }
lv_plugin_menu_set_item_hidden(pMenu, i, false);//整项 lv_obj_set_hidden(image_option2_scr_uiflowplay, false);
if((ITEMS_PER_PAGE * selectedPage) + i == ProfileFocused)
{
lv_plugin_menu_select_item(pMenu, i);//白条
}
if((ITEMS_PER_PAGE * selectedPage) + i == ProfileSelected)
{
ishidden = false;
}
}
else
{
lv_plugin_menu_set_item_hidden(pMenu, i, true);//整项
}
if(i==0){
lv_obj_set_hidden(image_option1_scr_uiflowplay, ishidden);//打钩
}else if(i == 1){
lv_obj_set_hidden(image_option2_scr_uiflowplay, ishidden);
}else if(i == 2){
lv_obj_set_hidden(image_option3_scr_uiflowplay, ishidden);
}else if(i == 3){
lv_obj_set_hidden(image_option4_scr_uiflowplay, ishidden);
}else if(i == 4){
lv_obj_set_hidden(image_option5_scr_uiflowplay, ishidden);
} }
else if (i == 0 && OPTION_PAGE_SELECT_FUNCTION != gOptionPage)
{
if (ProfileFocused == i) {//focused and √
lv_obj_set_state(image_button_option_1_scr_uiflowplay, LV_STATE_FOCUSED);
lv_obj_set_state(label_option1_scr_uiflowplay, LV_STATE_FOCUSED);
if (ProfileSelected == i)
{
lv_plugin_img_set_src(image_option1_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_LIST_SELECTED);
lv_obj_set_pos(image_option1_scr_uiflowplay, 272, 0);
lv_obj_set_hidden(image_option1_scr_uiflowplay, false);
}
else
{
lv_obj_set_hidden(image_option1_scr_uiflowplay, true);
}
}
else
{
lv_obj_set_state(image_button_option_1_scr_uiflowplay, LV_STATE_DEFAULT);
lv_obj_set_state(label_option1_scr_uiflowplay, LV_STATE_DEFAULT);
if (ProfileSelected == i)
{
lv_plugin_img_set_src(image_option1_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_LIST_SELECTED);
lv_obj_set_pos(image_option1_scr_uiflowplay, 272, 0);
lv_obj_set_hidden(image_option1_scr_uiflowplay, false);
}
else
{
lv_obj_set_hidden(image_option1_scr_uiflowplay, true);
}
}
}
else if (i == 1 && OPTION_PAGE_SELECT_FUNCTION != gOptionPage)
{
if (ProfileFocused == i) {//focused and √
lv_obj_set_state(image_button_option_2_scr_uiflowplay, LV_STATE_FOCUSED);
lv_obj_set_state(label_option2_scr_uiflowplay, LV_STATE_FOCUSED);
if (ProfileSelected == i)
{
lv_plugin_img_set_src(image_option2_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_LIST_SELECTED);
lv_obj_set_pos(image_option2_scr_uiflowplay, 272, 0);
lv_obj_set_hidden(image_option2_scr_uiflowplay, false);
}
else
{
lv_obj_set_hidden(image_option2_scr_uiflowplay, true);
}
}
else
{
lv_obj_set_state(image_button_option_2_scr_uiflowplay, LV_STATE_DEFAULT);
lv_obj_set_state(label_option2_scr_uiflowplay, LV_STATE_DEFAULT);
if (ProfileSelected == i)
{
lv_plugin_img_set_src(image_option2_scr_uiflowplay, LV_PLUGIN_IMG_ID_SF_LIST_SELECTED);
lv_obj_set_pos(image_option2_scr_uiflowplay, 272, 0);
lv_obj_set_hidden(image_option2_scr_uiflowplay, false);
}
else
{
lv_obj_set_hidden(image_option2_scr_uiflowplay, true);
}
}
}
} }
} }
void show_select_function(lv_obj_t* obj) void show_select_function(lv_obj_t* obj)
{ {
if (OPTION_PAGE_SELECT_FUNCTION == gOptionPage) { if (OPTION_PAGE_SELECT_FUNCTION == gOptionPage) {
@ -195,17 +238,17 @@ void show_Selection_page(lv_obj_t* obj)
{ {
// pMenu = menu_obj; // pMenu = menu_obj;
gSeletionShow = SELECTION_SHOW_TURE; gSeletionShow = SELECTION_SHOW_TURE;
ProfileFocused = 0;
ProfileTotal = 2; ProfileTotal = 2;
ProfileSelected = 0;
lv_obj_set_hidden(container_main_menu_scr_uiflowplay,false); lv_obj_set_hidden(container_main_menu_scr_uiflowplay,false);
show_select_function(obj); show_select_function(obj);
update_play_Selection_msg(obj); update_play_Selection_msg(obj);
} }
void hide_Selection_page(void) void hidde_Selection_page(void)
{ {
gSeletionShow = SELECTION_SHOW_FALSE; gSeletionShow = SELECTION_SHOW_FALSE;
gOptionPage = OPTION_PAGE_SELECT_FUNCTION; gOptionPage = OPTION_PAGE_SELECT_FUNCTION;
hidde_bar();
lv_obj_set_hidden(container_main_menu_scr_uiflowplay,true); lv_obj_set_hidden(container_main_menu_scr_uiflowplay,true);
} }
void Option_play_Selection_Key(lv_obj_t* obj, uint32_t key) void Option_play_Selection_Key(lv_obj_t* obj, uint32_t key)
@ -214,62 +257,77 @@ void Option_play_Selection_Key(lv_obj_t* obj, uint32_t key)
switch(key) switch(key)
{ {
case LV_USER_KEY_NEXT: case LV_USER_KEY_NEXT:
if(ProfileFocused >= 0 && ProfileFocused < (ProfileTotal - 1)) {
{ ProfileFocused++;
ProfileFocused++; if (ProfileFocused >= ProfileTotal)
}
else
{
ProfileFocused = 0;
}
update_play_Selection_msg(obj);
break;
case LV_USER_KEY_PREV:
if(ProfileFocused > 0 && ProfileFocused < ProfileTotal)
{
ProfileFocused--;
}
else
{
ProfileFocused = ProfileTotal - 1;
}
update_play_Selection_msg(obj);
break;
case LV_USER_KEY_LEFT:
// if (OPTION_PAGE_SELECT_FUNCTION == gOptionPage) {
// hide_Selection_page();
// } else {
// gOptionPage = OPTION_PAGE_SELECT_FUNCTION;
// show_Selection_page(obj);
// }
break;
case LV_USER_KEY_RIGHT:
case LV_KEY_ENTER:
if (OPTION_PAGE_SELECT_FUNCTION == gOptionPage) {
if (1 == ProfileFocused)
{ {
hide_Selection_page(); ProfileFocused = 0;
UINT32 uiFileSeq; }
PB_GetParam(PBPRMID_CURR_FILESEQ, &uiFileSeq); update_play_Selection_msg(obj);
if (0 != uiFileSeq) break;
{ }
stop_play(); case LV_USER_KEY_PREV:
UIFlowMenuCommonConfirmAPI_Open(IDM_DELETE_THIS); {
break; ProfileFocused--;
} if (ProfileFocused < 0)
} else { {
gOptionPage = OPTION_PAGE_FORMAT; ProfileFocused = ProfileTotal - 1;
}
update_play_Selection_msg(obj);
break;
}
case LV_USER_KEY_LEFT:
{
if (OPTION_PAGE_SELECT_FUNCTION == gOptionPage)
{
hidde_Selection_page();
}
else
{
gOptionPage = OPTION_PAGE_SELECT_FUNCTION;
show_Selection_page(obj); show_Selection_page(obj);
} }
} else { break;
}
case LV_USER_KEY_RIGHT:
case LV_KEY_ENTER:
if (OPTION_PAGE_SELECT_FUNCTION == gOptionPage) {
if (1 == ProfileFocused)//DELETE
{
hidde_Selection_page();
UINT32 uiFileSeq;
PB_GetParam(PBPRMID_CURR_FILESEQ, &uiFileSeq);
if (0 != uiFileSeq)
{
stop_play();
UIFlowMenuCommonConfirmAPI_Open(IDM_DELETE_THIS);
break;
}
}
else //GO TO STORAGE OPTIONS
{
//mmc_dev = SF_GetMMCDev();
//ProfileSelected = mmc_dev.dev_type
//printf(" ================================== storage option init%d\n", ProfileSelected);
//ProfileFocused = ProfileSelected;
gOptionPage = OPTION_PAGE_FORMAT;
show_Selection_page(obj);
}
}
else {
if (1 == ProfileFocused) if (1 == ProfileFocused)
{ {
printf(" ================================== switch sd card.\n"); printf(" ================================== switch sd card.\n");
ProfileSelected = 1;
} else { } else {
printf(" ================================== switch emmc.\n"); printf(" ================================== switch emmc.\n");
ProfileSelected = 0;
} }
hide_Selection_page(); hidde_Selection_page();
} }
break; break;
default: default:
@ -1369,7 +1427,7 @@ static void UIFlowPlay_ChildScrClose(lv_obj_t* obj, const void * data)
static void UIFlowPlay_ScrClose(lv_obj_t* obj) static void UIFlowPlay_ScrClose(lv_obj_t* obj)
{ {
DBG_DUMP("%s\r\n", __func__); DBG_DUMP("%s\r\n", __func__);
hide_Selection_page(); hidde_Selection_page();
/* do nothing if current system mode is not matched */ /* do nothing if current system mode is not matched */
if (System_GetState(SYS_STATE_CURRMODE) != PRIMARY_MODE_PLAYBACK){ if (System_GetState(SYS_STATE_CURRMODE) != PRIMARY_MODE_PLAYBACK){
DBG_WRN("system current mode is not playback\r\n"); DBG_WRN("system current mode is not playback\r\n");
@ -2274,6 +2332,7 @@ static void UIFlowPlay_Key(lv_obj_t* obj, uint32_t key)
{ {
if (SELECTION_SHOW_FALSE == gSeletionShow) { if (SELECTION_SHOW_FALSE == gSeletionShow) {
show_Selection_page(obj); show_Selection_page(obj);
init_bar();
} else { } else {
} }