simple-last-fm-scrobbler / sls

Simple Scrobbler, for Android -- last.fm, libre.fm & ListenBrainz
https://simple-last-fm-scrobbler.github.io
Apache License 2.0
550 stars 99 forks source link

The app closes when a song is played #480

Closed 97carmine closed 5 years ago

97carmine commented 5 years ago

Describe the bug

Two apps, VLC and Jellyfin have been tested.

Log

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
    at com.adam.aslfms.service.ControllerReceiverService.onClientPlaybackStateUpdate(ControllerReceiverService.java:137)
    at android.media.RemoteController.onNewPlaybackState(RemoteController.java:649)
    at android.media.RemoteController.access$400(RemoteController.java:58)
    at android.media.RemoteController$MediaControllerCallback.onPlaybackStateChanged(RemoteController.java:474)
    at android.media.session.MediaController$MessageHandler.handleMessage(MediaController.java:1155)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6806)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

Info

SLS version: Pre-Release v3 SLS 1.5.8 vCode 49 #479 Android version: Android 9 (MIUI Global 10.3.6)

a-r-db commented 5 years ago

Ok. super !! Thanks. It is fixed. Should have cast a long to a double.