mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
unread badge: show >999 as infinity symbol
This commit is contained in:
parent
081c33b886
commit
f75eb6bc43
@ -61,7 +61,7 @@ public class UnreadCountCustomView extends View {
|
||||
float textOffset = canvas.getWidth() / 6.0f;
|
||||
textPaint.setTextSize(0.95f * radius);
|
||||
canvas.drawCircle(midx, midy, radius * 0.94f, paint);
|
||||
canvas.drawText(String.valueOf(unreadCount), midx, midy + textOffset, textPaint);
|
||||
canvas.drawText(unreadCount > 999 ? "\u221E" : String.valueOf(unreadCount), midx, midy + textOffset, textPaint);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user