Skip to content

Commit

Permalink
Merge pull request #229 from nicholasmd3/improve_64c042e
Browse files Browse the repository at this point in the history
Improve commit 64c042e
  • Loading branch information
nift4 authored Jul 23, 2024
2 parents 7504580 + 95b77e4 commit 6b59084
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,7 @@ object LrcUtils {

markTranslations(lyricsList)

if (lyricsList.isNotEmpty()) {
var count = 0
while (true) {
if (count < lyricsList.size
&& lyricsList[count].content.isEmpty()) {
lyricsList.removeAt(count)
count --
} else {
break
}
count++
}
}
lyricsList.removeAll { it.content.isEmpty() }

if (lyricsList.isEmpty() && lrcContent.isNotEmpty()) {
lyricsList.add(MediaStoreUtils.Lyric(null, lrcContent, false))
Expand Down

0 comments on commit 6b59084

Please sign in to comment.