Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when headset plug used and responding to headset #223

Closed
jroal opened this issue Aug 27, 2016 · 1 comment
Closed

Crash when headset plug used and responding to headset #223

jroal opened this issue Aug 27, 2016 · 1 comment

Comments

@jroal
Copy link
Owner

jroal commented Aug 27, 2016

Crash report from Play Store. Missing small icon for headset plug.

ava.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.HEADSET_PLUG flg=0x40000010 bqHint=4 (has extras) } in a2dp.Vol.service$4@8c124de
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1003)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(pri=-2 contentView=a2dp.Vol/0x10900b3 vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0)
at android.app.NotificationManager.notify(NotificationManager.java:255)
at android.app.NotificationManager.notify(NotificationManager.java:211)
at a2dp.Vol.service.updateNot(service.java:1135)
at a2dp.Vol.service.DoDisconnected(service.java:958)
at a2dp.Vol.service$4.onReceive(service.java:486)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:993)

@jroal jroal closed this as completed Sep 10, 2016
@jroal jroal reopened this Sep 16, 2016
@jroal
Copy link
Owner Author

jroal commented Oct 6, 2018

I actually found many icon issues and fixed them in 2.12.10. The problem is the device database was storing the integer that referenced the icons but the icon resource integers can changes by release making the stored icon integer no longer reference a real resource. I now added a few checks but the most important one in the database itself where it makes sure only valid icon resources are returned. If an invalid one is stored, it will be replaced by the car icon.

@jroal jroal closed this as completed Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant