mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-20 20:29:59 +01:00
Fix a bad cast
This commit is contained in:
parent
493a587b37
commit
60a0fe17dd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user