Fix a bad cast

This commit is contained in:
tzugen 2021-03-24 14:44:22 +01:00
parent 493a587b37
commit 60a0fe17dd
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ class LocalMediaPlayer(private val audioFocusHandler: AudioFocusHandler, private
val title = currentSong.title
val currentSongDuration = currentSong.duration
var duration = 0L
if (currentSongDuration != null) duration = currentSongDuration!! as Long * 1000
if (currentSongDuration != null) duration = (currentSongDuration * 1000).toLong()
remoteControlClient!!.editMetadata(true)
.putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, artist)
.putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, artist)