siavash79 / PixelXpert

mixed Xposed+Magisk module for customization of Google Pixel rom of Android 12+
GNU General Public License v3.0
1.81k stars 111 forks source link

[Bug] Spamming java.lang.ClassCastException when notification shade brought down #661

Closed TheSunCat closed 1 year ago

TheSunCat commented 1 year ago

Describe the issue

When dragging notification shade down, this message is spammed in logcat

Steps to reproduce

  1. Install AOSP mods
  2. Run adb logcat or other way to view logcat
  3. Drag down the notification shade
  4. Observe

Expected bahavior

Logs should not be spammed

Your device setup (Please take some time to give correct information here)

Logs

07-14 16:25:13.639  2388  2388 E LSPosed-Bridge: java.lang.ClassCastException: com.android.systemui.statusbar.phone.NotificationIconContainer cannot be cast to android.widget.FrameLayout
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at sh.siava.AOSPMods.utils.NotificationIconContainerOverride.calculateIconXTranslations(NotificationIconContainerOverride.java:129)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at sh.siava.AOSPMods.systemui.StatusbarMods$5.beforeHookedMethod(StatusbarMods.java:501)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at LSPHooker_.calculateIconXTranslations(Unknown Source:8)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at com.android.systemui.statusbar.NotificationShelf.updateAppearance(NotificationShelf.java:772)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at com.android.systemui.statusbar.NotificationShelf$ShelfState.applyToView(NotificationShelf.java:26)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout.applyCurrentState(NotificationStackScrollLayout.java:18)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout$1.onPreDraw(NotificationStackScrollLayout.java:2671)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1182)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3654)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2371)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9297)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1231)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1239)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.Choreographer.doCallbacks(Choreographer.java:899)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.Choreographer.doFrame(Choreographer.java:832)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1214)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.os.Handler.handleCallback(Handler.java:942)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.os.Handler.dispatchMessage(Handler.java:99)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.os.Looper.loopOnce(Looper.java:201)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.os.Looper.loop(Looper.java:288)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at android.app.ActivityThread.main(ActivityThread.java:7918)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at java.lang.reflect.Method.invoke(Native Method)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
07-14 16:25:13.639  2388  2388 E LSPosed-Bridge:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
EleoXDA commented 1 year ago

LOS not supported

EleoXDA commented 1 year ago

Already mentioned in the bugreport template that you filled:

Screenshot_20230714-164225.png

TheSunCat commented 1 year ago

Somehow missed that, sorry!

EleoXDA commented 1 year ago

No problem