summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-04-10 06:29:01 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2022-05-09 09:44:23 -0400
commitf3358eb20a9a07b6788fd9cf9d58cffb0e072342 (patch)
treeb794a89829cabffc1358365997f374925033ecd6 /apps/screens.c
parent4b293285ea04df6c8ca04ec01f1b4729d285d379 (diff)
downloadrockbox-f3358eb20a9a07b6788fd9cf9d58cffb0e072342.tar.gz
rockbox-f3358eb20a9a07b6788fd9cf9d58cffb0e072342.zip
Properties plugin: Eliminate redundant Track Info code
When opening an audio file from the file browser or database using the Properties plugin, it will now use existing code from the Show Track Info screen for displaying metadata. The menu option has been renamed accordingly. Change-Id: I5a824865b9f980151b91aff3c3c18ec45830a12c
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 5d56906b90..24d1fed915 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -595,6 +595,8 @@ static const char * id3_get_or_speak_info(int selected_item, void* data,
595 talk_value(id3->length /1000, UNIT_TIME, true); 595 talk_value(id3->length /1000, UNIT_TIME, true);
596 break; 596 break;
597 case LANG_ID3_PLAYLIST: 597 case LANG_ID3_PLAYLIST:
598 if (info->playlist_display_index == 0 || info->playlist_amount == 0 )
599 return NULL;
598 snprintf(buffer, buffer_len, "%d/%d", 600 snprintf(buffer, buffer_len, "%d/%d",
599 info->playlist_display_index, info->playlist_amount); 601 info->playlist_display_index, info->playlist_amount);
600 val=buffer; 602 val=buffer;
@@ -708,6 +710,7 @@ bool browse_id3(struct mp3entry *id3, int playlist_display_index, int playlist_a
708 if(global_settings.talk_menu) 710 if(global_settings.talk_menu)
709 gui_synclist_set_voice_callback(&id3_lists, id3_speak_item); 711 gui_synclist_set_voice_callback(&id3_lists, id3_speak_item);
710 gui_synclist_set_nb_items(&id3_lists, info.count*2); 712 gui_synclist_set_nb_items(&id3_lists, info.count*2);
713 gui_synclist_set_title(&id3_lists, str(LANG_TRACK_INFO), NOICON);
711 gui_synclist_draw(&id3_lists); 714 gui_synclist_draw(&id3_lists);
712 gui_synclist_speak_item(&id3_lists); 715 gui_synclist_speak_item(&id3_lists);
713 while (true) { 716 while (true) {