简体   繁体   English

Android通知状态栏中的红色圆圈为空!

[英]Empty red circle in Android notification status bar!

When I have a status bar notification with a number inside, it shows the number fine . 当我的状态栏通知中带有数字时, 它会显示数字fine But later if I show another notification to replace this one, with no number , it shows an empty red circle . 但是稍后,如果我显示另一条替换数字的通知( 没有数字) ,则会显示一个空的红色圆圈 This circle shouldn't be there. 这个圈子不应该在那里。 How do I remove the red circle? 如何删除红色圆圈? See image here: http://jump.fm/UYHGV 在此处查看图片: http//jump.fm/UYHGV

I've already tried: 我已经尝试过:

notification.number = 0;

and

notification.number = -1;

And forget about canceling notifications first. 并且忘记先取消通知。 Since there's no way to query the notification service for existing notifications, I can't detect if the previous one needs to be updated. 由于无法查询通知服务中的现有通知,因此无法检测是否需要更新前一个通知。 If I would cancel every time I notify, the user will see the status bar flashing once in a while, which is annoying. 如果我每次通知都取消时,用户会偶尔看到状态栏闪烁,这很烦人。

Please advise. 请指教。

Emmanuel 伊曼纽尔

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM