diff options
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r-- | apps/gui/skin_engine/skin_render.c | 2 | ||||
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 32 |
2 files changed, 2 insertions, 32 deletions
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; |