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: minaripenguin <minaripenguin@users.noreply.github.com>
Loading
Please register or sign in to comment