Skip to content

Commit

Permalink
switch lyrics when the track changes
Browse files Browse the repository at this point in the history
implements naman14#476
  • Loading branch information
lostmsu committed Dec 10, 2022
1 parent 524078f commit 162a833
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public void run() {

long position = MusicPlayer.position();
if (LyricsFragment.this.isResumed()) {
long newAudioId = MusicPlayer.getCurrentAudioId();
if (newAudioId != audioId) {
loadLyrics();
}
if (syncLyricsView.getVisibility() == View.VISIBLE) {
syncLyricsView.updateTime(position);
}
Expand Down

0 comments on commit 162a833

Please sign in to comment.