From 32e074584857a2e107a91d51c2531d67747331fd Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 3 Feb 2019 19:37:56 -0500 Subject: Fix minor issues introduced in fe95127 (Playlist playing time) * Custom statusbars inappropriately overwriten * Off-by-one error displaying playlist position. Change-Id: I08df67110fab97ed213c53e8fa86d386367cd6be --- apps/onplay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/onplay.c b/apps/onplay.c index 092d23406b..095a337d6b 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -289,7 +289,7 @@ static const char * playing_time_get_or_speak_info(int selected_item, void * dat case 4: { /* track index */ int track_perc = (pti->curr_playing+1) *100 / pti->nb_tracks; snprintf(buf, buffer_len, str(LANG_PLAYTIME_TRACK), - pti->curr_playing, pti->nb_tracks, track_perc); + pti->curr_playing + 1, pti->nb_tracks, track_perc); if (say_it) talk_ids(false, LANG_PLAYTIME_TRACK, TALK_ID(pti->curr_playing+1, UNIT_INT), @@ -430,10 +430,10 @@ static bool playing_time(void) gui_synclist_set_voice_callback(&pt_lists, playing_time_speak_info); gui_synclist_set_nb_items(&pt_lists, 8); gui_synclist_draw(&pt_lists); - gui_syncstatusbar_draw(&statusbars, true); +/* gui_syncstatusbar_draw(&statusbars, true); */ gui_synclist_speak_item(&pt_lists); while (true) { - gui_syncstatusbar_draw(&statusbars, false); +/* gui_syncstatusbar_draw(&statusbars, false); */ if (list_do_action(CONTEXT_LIST, HZ/2, &pt_lists, &key, LIST_WRAP_UNLESS_HELD) == 0 && key!=ACTION_NONE && key!=ACTION_UNKNOWN) -- cgit v1.2.3