summaryrefslogtreecommitdiff
path: root/apps/plugin.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/plugin.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/plugin.c')
-rw-r--r--apps/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 128b52ea2d..b8897c95ee 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -919,7 +919,7 @@ int plugin_load(const char* plugin, const void* parameter)
919 int rc = p_hdr->entry_point(parameter); 919 int rc = p_hdr->entry_point(parameter);
920 920
921 tree_unlock_cache(tree_get_context()); 921 tree_unlock_cache(tree_get_context());
922 pop_current_activity(); 922 pop_current_activity(ACTIVITY_REFRESH_NOW);
923 923
924 if (!pfn_tsr_exit) 924 if (!pfn_tsr_exit)
925 { /* close handle if plugin is no tsr one */ 925 { /* close handle if plugin is no tsr one */