summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-11-27 01:15:14 +0100
committerChristian Soffke <christian.soffke@gmail.com>2022-12-11 11:50:33 +0100
commitdfd9c10589d25a966c7e2e4dedab57c59a1987fd (patch)
treef65fcbefd97eff19ec3605aa1dfc161ad4221da6 /apps/misc.c
parent90d1ac044857781c4885da8cbfde62ece344fce3 (diff)
downloadrockbox-dfd9c10589d25a966c7e2e4dedab57c59a1987fd.tar.gz
rockbox-dfd9c10589d25a966c7e2e4dedab57c59a1987fd.zip
Eliminate skin updates in between activities
1) Adds way to pop activity without refreshing the skin at the same time. Activities are sometimes popped in immediate succession, or one activity is popped before another one is pushed right away. This can lead to the UI appearing glitchy, due to an activity only appearing for a split-second, which is especially noticeable with complex skins that change the dimensions of the UI viewport depending on the current activity To fix this, prevent superfluous skin updates * when switching between: - WPS and browser - WPS and Playlist Catalogue - WPS and playlist - WPS and Settings/System/Plugins * when accessing Track Info or when displaying bookmarks using the context menu on the WPS * when switching from QuickScreen to Shortcuts Menu 2) The playlist viewer activity was pushed & popped redundantly by playlist_view. ---- NB: Behavior has remained unchanged in all instances of the code where pop_current_activity() has been replaced by pop_current_activity(ACTIVITY_REFRESH_NOW). Change-Id: I56b517b8c9dba823a9fed3a3f558d7469dcea9fd
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 950662d19a..7da3c57c73 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -1579,13 +1579,14 @@ void push_current_activity(enum current_activity screen)
1579 } 1579 }
1580} 1580}
1581 1581
1582void pop_current_activity(void) 1582void pop_current_activity(enum activity_refresh refresh)
1583{ 1583{
1584 current_activity_top--; 1584 current_activity_top--;
1585 FOR_NB_SCREENS(i) 1585 FOR_NB_SCREENS(i)
1586 { 1586 {
1587 skinlist_set_cfg(i, NULL); 1587 skinlist_set_cfg(i, NULL);
1588 skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); 1588 if (ACTIVITY_REFRESH_NOW == refresh)
1589 skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);
1589 } 1590 }
1590} 1591}
1591enum current_activity get_current_activity(void) 1592enum current_activity get_current_activity(void)