Add a %cs(current screen) state for the "Track Info" screen

Added a new state (current activity) to the %cs tag for the Track Info screen.
This will allow the Track Info screen to be detectable when skinning using sbs
files.

Change-Id: I9319ebce2f8e64b0c974f4a6e3b44f9accee32c5
Reviewed-on: http://gerrit.rockbox.org/170
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
This commit is contained in:
Osborne Jacobs 2012-03-02 23:30:07 -05:00 committed by Jonathan Gordon
parent bcfa783100
commit d5e676ba29
2 changed files with 15 additions and 3 deletions

View file

@ -127,7 +127,8 @@ enum current_activity {
ACTIVITY_SYSTEMSCREEN,
ACTIVITY_TIMEDATESCREEN,
ACTIVITY_BOOKMARKSLIST,
ACTIVITY_SHORTCUTSMENU
ACTIVITY_SHORTCUTSMENU,
ACTIVITY_ID3SCREEN
};
#if CONFIG_CODEC == SWCODEC

View file

@ -767,6 +767,8 @@ bool browse_id3(void)
struct id3view_info info;
info.count = 0;
info.id3 = id3;
bool ret = false;
push_current_activity(ACTIVITY_ID3SCREEN);
for (i = 0; i < ARRAYLEN(id3_headers); i++)
{
char temp[8];
@ -783,12 +785,21 @@ bool browse_id3(void)
if(!gui_synclist_do_button(&id3_lists, &key,LIST_WRAP_UNLESS_HELD))
{
if (key == ACTION_STD_OK || key == ACTION_STD_CANCEL)
return false;
{
ret = false;
break;
}
else if (key == ACTION_STD_MENU ||
default_event_handler(key) == SYS_USB_CONNECTED)
return true;
{
ret = true;
break;
}
}
}
pop_current_activity();
return ret;
}
static const char* runtime_get_data(int selected_item, void* data,