mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-01 09:46:45 +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 title = currentSong.title
|
||||||
val currentSongDuration = currentSong.duration
|
val currentSongDuration = currentSong.duration
|
||||||
var duration = 0L
|
var duration = 0L
|
||||||
if (currentSongDuration != null) duration = currentSongDuration!! as Long * 1000
|
if (currentSongDuration != null) duration = (currentSongDuration * 1000).toLong()
|
||||||
remoteControlClient!!.editMetadata(true)
|
remoteControlClient!!.editMetadata(true)
|
||||||
.putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, artist)
|
.putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, artist)
|
||||||
.putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, artist)
|
.putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, artist)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user