Skip to content

Conversation

@sffzh
Copy link

@sffzh sffzh commented Jan 14, 2026

When two consecutive lines in the lyrics have the same timestamp, both lines will be highlighted simultaneously. This is to support the display of lyrics that include translated text.

图片

@eddyizm
Copy link
Owner

eddyizm commented Jan 24, 2026

Hi @sffzh ,
I tested this today and even though I don't have any lyrics with 2 lines, it seems to have broken the single line lyrics.
I tested on the ampache demo server to see the diff between this PR and the current dev build.

@eddyizm eddyizm added bug Something isn't working needs testing Requires some manual testing and validation. labels Jan 24, 2026
@pgrit
Copy link
Contributor

pgrit commented Jan 25, 2026

If #384 should be merged, this can be quite elegantly re-implemented by:

Continuing the for loop until the first line is found that is not playing, and tracking a second endIndex
https://github.com/pgrit/tempus/blob/7a4d2be7b56eb7b99706450a6247016a7f3ff271/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/PlayerLyricsFragment.java#L307

Doing a range check rather than equality for this bool:
https://github.com/pgrit/tempus/blob/7a4d2be7b56eb7b99706450a6247016a7f3ff271/app/src/main/java/com/cappielloantonio/tempo/ui/fragment/PlayerLyricsFragment.java#L328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working needs testing Requires some manual testing and validation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants