* Make ID3 info screen usable again (and not exit right after enter), though maybe a few more buttons should cause an exit.\n* Also save a few bytes of code...

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10592 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2006-08-15 19:52:03 +00:00
parent 0a3b551c42
commit 45c57e50b2

View file

@ -1012,7 +1012,7 @@ char * id3_get_info(int selected_item, void* data, char *buffer)
int info_no=selected_item/2;
if(!(selected_item%2))
{/* header */
int headers[]=
static const int headers[]=
{
LANG_ID3_TITLE,
LANG_ID3_ARTIST,
@ -1117,7 +1117,7 @@ bool browse_id3(void)
gui_synclist_draw(&id3_lists);
while (true) {
key = get_action(CONTEXT_STD,HZ/2);
if(key!=ACTION_NONE && /* !(key&BUTTON_REL) && ?? */ !gui_synclist_do_button(&id3_lists, key))
if(key!=ACTION_NONE && key!=ACTION_UNKNOWN && /* !(key&BUTTON_REL) && ?? */ !gui_synclist_do_button(&id3_lists, key))
{
action_signalscreenchange();
return(default_event_handler(key) == SYS_USB_CONNECTED);