@@ -37,13 +37,15 @@ static void event_handler(lv_event_t * e)
3737 if (code == LV_EVENT_CLICKED ) {
3838 //lvgl_show_boot_logo();
3939 // Lets firstly write index to metadata
40+ #ifndef PLATFORM_SIMULATOR
4041 ext4_file f ;
4142 int ret = ext4_fopen (& f , "/boot/db/last_index" , "wb" );
4243
4344 char s [128 ]= "" ;
4445 sprintf (s ,"%u" , index );
4546 ret = ext4_fwrite (& f , s , 128 , 0 );
4647 ret = ext4_fclose (& f );
48+ #endif
4749
4850 if (!strcmp ((droidboot_entry_list + index )-> kernel , "null" ))
4951 {
@@ -191,14 +193,14 @@ void droidboot_draw_dualboot_menu(struct boot_entry *droidboot_entry_list1, stru
191193 lv_obj_set_size (win , lv_pct (100 ), lv_pct (100 ));
192194 lv_obj_t * win_title = lv_win_add_title (win , "Select OS" );
193195 lv_obj_set_pos (win_title , 0 , 0 );
194- // lv_obj_add_style(lv_win_get_header(win), &droidboot_win_style, 0);
195- // lv_obj_add_style(win, &droidboot_win_style, 0);
196+ lv_obj_add_style (lv_win_get_header (win ), & droidboot_win_style , 0 );
197+ lv_obj_add_style (win , & droidboot_win_style , 0 );
196198
197199 lv_obj_t * list1 = lv_list_create (win );
198200 lv_obj_set_size (list1 , lv_pct (100 ), lv_pct (100 ));
199201 lv_obj_set_pos (list1 , 0 , 00 );
200202 lv_obj_align (list1 , LV_ALIGN_BOTTOM_MID , 0 , 0 );
201- // lv_obj_add_style(list1, &droidboot_list_style, 0);
203+ lv_obj_add_style (list1 , & droidboot_list_style , 0 );
202204 droidboot_add_dualboot_menu_buttons (list1 );
203205
204206 no_autoboot = false;
0 commit comments