Skip to content

Commit

Permalink
Update ViewerActivity.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
yassineimounachen authored Nov 18, 2024
1 parent dd11e96 commit 34167ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/eu/tilk/cdlcplayer/ViewerActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ViewerActivity : AppCompatActivity() {
if (actualDelta !in (targetDelta - 70) .. (targetDelta + 70)) {
player!!.seekTo(currentTime)
}

// ⚠️
if (songViewModel.song.value!!.vocals.isNotEmpty()) {
if (songViewModel.currentWord.value!! < 0 || currentTime / 1000F !in songViewModel.song.value!!.vocals[songViewModel.currentWord.value!!].time - 0.05 .. songViewModel.song.value!!.vocals[songViewModel.currentWord.value!!].time + songViewModel.song.value!!.vocals[songViewModel.currentWord.value!!].length + 0.05) {
songViewModel.currentWord.value =
Expand Down

0 comments on commit 34167ee

Please sign in to comment.