Skip to content
Commit e6ad7e1c authored by minaripenguin's avatar minaripenguin Committed by Joey Huab
Browse files

Fix ClassCastException during onNotificationPosted



07-09 22:01:08.544  6056  6056 W Bundle  : Key android.title expected String but value was a android.text.SpannableString.  The default value <null> was returned.
07-09 22:01:08.545  6056  6056 W Bundle  : Attempt to cast generated internal exception:
07-09 22:01:08.545  6056  6056 W Bundle  : java.lang.ClassCastException: android.text.SpannableString cannot be cast to java.lang.String
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.os.BaseBundle.getString(BaseBundle.java:1419)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at io.chaldeaprjkt.gamespace.gamebar.DanmakuServiceListener.onNotificationPosted(DanmakuServiceListener.kt:38)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:485)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2404)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.os.Handler.dispatchMessage(Handler.java:107)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.os.Looper.loopOnce(Looper.java:232)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.os.Looper.loop(Looper.java:317)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.app.ActivityThread.main(ActivityThread.java:8594)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at java.lang.reflect.Method.invoke(Native Method)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
07-09 22:01:08.545  6056  6056 W Bundle  : Key android.title.big expected String but value was a android.text.SpannableString.  The default value <null> was returned.
07-09 22:01:08.545  6056  6056 W Bundle  : Attempt to cast generated internal exception:
07-09 22:01:08.545  6056  6056 W Bundle  : java.lang.ClassCastException: android.text.SpannableString cannot be cast to java.lang.String
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.os.BaseBundle.getString(BaseBundle.java:1419)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at io.chaldeaprjkt.gamespace.gamebar.DanmakuServiceListener.onNotificationPosted(DanmakuServiceListener.kt:38)
07-09 22:01:08.545  6056  6056 W Bundle  : 	at android.service.notification.NotificationListenerService.onNotificationPosted(NotificationListenerService.java:485)

Signed-off-by: default avatarminaripenguin <minaripenguin@users.noreply.github.com>
parent 08074936
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment