mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix glitches with custom list title viewports
Elements were not being drawn correctly or title text appeared delayed in several places when using themes with a custom viewport for list titles. E.g.: - after deleting a shortcut - when returning from a warning screen in Playlist Viewer - returning to some Settings screens - in "Playing time" screen Change-Id: I8ab07a31d4b6f290e089ecd7857f43ec195a06e0
This commit is contained in:
parent
04cbb3c7e4
commit
8d453ae9c3
4 changed files with 9 additions and 0 deletions
|
@ -451,10 +451,14 @@ static int shortcut_menu_get_action(int action, struct gui_synclist *lists)
|
|||
int selection = gui_synclist_get_sel_pos(lists);
|
||||
|
||||
if (!yesno_pop(ID2P(LANG_REALLY_DELETE)))
|
||||
{
|
||||
gui_synclist_set_title(lists, lists->title, lists->title_icon);
|
||||
return ACTION_REDRAW;
|
||||
}
|
||||
|
||||
remove_shortcut(selection);
|
||||
gui_synclist_set_nb_items(lists, shortcut_count);
|
||||
gui_synclist_set_title(lists, lists->title, lists->title_icon);
|
||||
if (selection >= shortcut_count)
|
||||
gui_synclist_select_item(lists, shortcut_count - 1);
|
||||
first_idx_to_writeback = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue