Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Oct 26, 2024
1 parent b08f9a1 commit 56f78e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,11 @@ class GramophonePlaybackService : MediaLibraryService(), MediaSessionService.Lis
val syncedLyrics = lyrics as SemanticLyrics.SyncedLyrics
syncedLyrics.text.indexOfLast {
it.lyric.start <= (controller?.currentPosition ?: 0).toULong()
}?.let { if (it == -1) null else -1 }
}.let { if (it == -1) null else it }
} else if (lyricsLegacy != null) {
lyricsLegacy?.indexOfLast {
(it.timeStamp ?: Long.MAX_VALUE) <= (controller?.currentPosition ?: 0)
}?.let { if (it == -1) null else -1 }
}?.let { if (it == -1) null else it }
} else null

override fun onForegroundServiceStartNotAllowedException() {
Expand Down

0 comments on commit 56f78e5

Please sign in to comment.