SubLCD上状态栏消失

时间:2022-05-15 00:50:40


由于电池信息在更新电量信息时重画Status Icon Bar背景,将其他icon都覆盖掉,而后只画了电池图标,导致其他图片消失。
需要修改函数:

void SUBLCD_screens_hide_status_icons(void)

{

#ifdef __MMI_SUBLCD__

/*----------------------------------------------------------------*/

/* Local Variables */

/*----------------------------------------------------------------*/

GDI_HANDLE act_lcd = GDI_ERROR_HANDLE;

S32 x1, x2, y1, y2;

/*----------------------------------------------------------------*/

/* Code Body */

/*----------------------------------------------------------------*/

#ifdef __MMI_SUBLCD_SHOW_ANALOG_CLOCK__

return;

#endif

GDI_LOCK;

gdi_lcd_get_active(&act_lcd);

if (act_lcd != GDI_LCD_SUB_LCD_HANDLE)

{

UI_set_sub_LCD_graphics_context();

}

wgui_status_icon_bar_get_clip(WGUI_STATUS_ICON_BAR_SUBLCD_H_BAR, &x1, &y1, &x2, &y2);

wgui_status_icon_bar_show_sublcd_background(x1, y1, x2, y2, MMI_TRUE);

if (act_lcd == GDI_LCD_MAIN_LCD_HANDLE)

{

UI_set_main_LCD_graphics_context();

}

GDI_UNLOCK;

#endif /* __MMI_SUBLCD__ */

}