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

华为 小米手机都有这个问题 #4

Open
WuGang128 opened this issue Nov 13, 2017 · 2 comments
Open

华为 小米手机都有这个问题 #4

WuGang128 opened this issue Nov 13, 2017 · 2 comments

Comments

@WuGang128
Copy link

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mingle.headupdemo, PID: 8219
java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(pri=0 contentView=com.mingle.headupdemo/0x109008c vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 actions=1 vis=PRIVATE)
at android.app.NotificationManager.notifyAsUser(NotificationManager.java:318)
at android.app.NotificationManager.notify(NotificationManager.java:293)
at android.app.NotificationManager.notify(NotificationManager.java:277)
at com.mingle.headsUp.HeadsUpManager.show(HeadsUpManager.java:125)

@WuGang128
Copy link
Author

public Builder setSmallIcon(int icon) {
headsUp.setIcon(icon);
// super.setSmallIcon(icon);
return this;
}
这里为什么注释了呢。 打开注释 小米华为就能正常使用, 但是不知道会有什么问题

@l1x2d3
Copy link

l1x2d3 commented Jan 31, 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

2 participants