summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/option_select.c2
-rw-r--r--apps/gui/quickscreen.c4
-rw-r--r--apps/gui/skin_engine/skin_render.c2
-rw-r--r--apps/gui/skin_engine/skin_tokens.c32
4 files changed, 8 insertions, 32 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index f954268c18..7f829d26c3 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -486,6 +486,7 @@ bool option_screen(const struct settings_list *setting,
486 temp_var = oldvalue = *(bool*)setting->setting?1:0; 486 temp_var = oldvalue = *(bool*)setting->setting?1:0;
487 } 487 }
488 else return false; /* only int/bools can go here */ 488 else return false; /* only int/bools can go here */
489 push_current_activity(ACTIVITY_OPTIONSELECT);
489 gui_synclist_init(&lists, value_setting_get_name_cb, 490 gui_synclist_init(&lists, value_setting_get_name_cb,
490 (void*)setting, false, 1, parent); 491 (void*)setting, false, 1, parent);
491 if (setting->lang_id == -1) 492 if (setting->lang_id == -1)
@@ -566,6 +567,7 @@ bool option_screen(const struct settings_list *setting,
566 if (function == sound_get_fn(SOUND_VOLUME)) 567 if (function == sound_get_fn(SOUND_VOLUME))
567 global_status.last_volume_change = current_tick; 568 global_status.last_volume_change = current_tick;
568 } 569 }
570 pop_current_activity();
569 return false; 571 return false;
570} 572}
571 573
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c
index f03043d611..3922c94c4b 100644
--- a/apps/gui/quickscreen.c
+++ b/apps/gui/quickscreen.c
@@ -317,6 +317,9 @@ static bool gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_ente
317 * - an action taken while pressing the enter button, 317 * - an action taken while pressing the enter button,
318 * then release the enter button*/ 318 * then release the enter button*/
319 bool can_quit = false; 319 bool can_quit = false;
320
321 push_current_activity(ACTIVITY_QUICKSCREEN);
322
320 FOR_NB_SCREENS(i) 323 FOR_NB_SCREENS(i)
321 { 324 {
322 screens[i].set_viewport(NULL); 325 screens[i].set_viewport(NULL);
@@ -369,6 +372,7 @@ static bool gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_ente
369 viewportmanager_theme_undo(i, true); 372 viewportmanager_theme_undo(i, true);
370 } 373 }
371 374
375 pop_current_activity();
372 return changed; 376 return changed;
373} 377}
374 378
diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c
index 3037a955c7..349dc07d0a 100644
--- a/apps/gui/skin_engine/skin_render.c
+++ b/apps/gui/skin_engine/skin_render.c
@@ -780,7 +780,7 @@ static __attribute__((noinline)) void skin_render_playlistviewer(struct playlist
780 int cur_pos, start_item, max; 780 int cur_pos, start_item, max;
781 int nb_lines = viewport_get_nb_lines(viewer->vp); 781 int nb_lines = viewport_get_nb_lines(viewer->vp);
782#if CONFIG_TUNER 782#if CONFIG_TUNER
783 if (current_screen() == GO_TO_FM) 783 if (get_current_activity() == ACTIVITY_FM)
784 { 784 {
785 cur_pos = radio_current_preset(); 785 cur_pos = radio_current_preset();
786 start_item = cur_pos + viewer->start_offset; 786 start_item = cur_pos + viewer->start_offset;
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 3aa7947edc..3c6a817ea8 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -1730,37 +1730,7 @@ const char *get_token_value(struct gui_wps *gwps,
1730 1730
1731 case SKIN_TOKEN_CURRENT_SCREEN: 1731 case SKIN_TOKEN_CURRENT_SCREEN:
1732 { 1732 {
1733 int curr_screen = current_screen(); 1733 int curr_screen = get_current_activity();
1734
1735#ifdef HAVE_RECORDING
1736 /* override current_screen() for recording screen since it may
1737 * be entered from the radio screen */
1738 if (in_recording_screen())
1739 curr_screen = GO_TO_RECSCREEN;
1740#endif
1741
1742 switch (curr_screen)
1743 {
1744 case GO_TO_WPS:
1745 curr_screen = 2;
1746 break;
1747#ifdef HAVE_RECORDING
1748 case GO_TO_RECSCREEN:
1749 curr_screen = 3;
1750 break;
1751#endif
1752#if CONFIG_TUNER
1753 case GO_TO_FM:
1754 curr_screen = 4;
1755 break;
1756#endif
1757 case GO_TO_PLAYLIST_VIEWER:
1758 curr_screen = 5;
1759 break;
1760 default: /* lists */
1761 curr_screen = 1;
1762 break;
1763 }
1764 if (intval) 1734 if (intval)
1765 { 1735 {
1766 *intval = curr_screen; 1736 *intval = curr_screen;