Skip to content

Commit 532b65d

Browse files
committed
[Badge] Fix crash caused by non-ascii strings
PiperOrigin-RevId: 523793683
1 parent 619d5a6 commit 532b65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/java/com/google/android/material/badge/BadgeDrawable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public class BadgeDrawable extends Drawable implements TextDrawableDelegate {
158158
* If the badge string exceeds the maximum allowed number of characters, append this suffix to the
159159
* truncated badge text and display it as the badge text instead.
160160
*/
161-
static final String DEFAULT_EXCEED_MAX_BADGE_TEXT_SUFFIX = "";
161+
static final String DEFAULT_EXCEED_MAX_BADGE_TEXT_SUFFIX = "\u2026";
162162

163163
/**
164164
* The badge offset begins at the edge of the anchor.

0 commit comments

Comments
 (0)