summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-15 18:57:46 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-15 18:57:46 +0100
commit2eb873cea62805f232e4633c73e67c4e2b116cd4 (patch)
treef9cd0729fe5406e96aa11dd279a89294beeaecb3 /apps/misc.c
parent644d9eab6c55c736e72afdb4a8f3432a07d8fc11 (diff)
skins: Update SBS when changing activities.
When changing activities (those that are indicated via %cs skin tag), the sbs needs to be updated, so that the UI viewport can be applied before that activity draws its UI. Fixes FS#12804. I hope this commit doesn't have bad side effects. Change-Id: If45654e356749f5f27991430dbd1da6f23e6f802
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c
index fa33bb5c4f..d63676eb89 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -1214,18 +1214,26 @@ static int current_activity_top = 0;
void push_current_activity(enum current_activity screen)
{
current_activity[current_activity_top++] = screen;
-#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__)
FOR_NB_SCREENS(i)
+ {
+#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__)
skinlist_set_cfg(i, NULL);
#endif
+ skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);
+ }
}
+
void pop_current_activity(void)
{
current_activity_top--;
-#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__)
FOR_NB_SCREENS(i)
+ {
+#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__)
skinlist_set_cfg(i, NULL);
#endif
+ skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);
+ }
+
}
enum current_activity get_current_activity(void)
{