Skip to content

Commit

Permalink
[Badge] Fix crash caused by non-ascii strings
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 523793683
  • Loading branch information
drchen committed Apr 13, 2023
1 parent 619d5a6 commit 532b65d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -158,7 +158,7 @@ public class BadgeDrawable extends Drawable implements TextDrawableDelegate {
* If the badge string exceeds the maximum allowed number of characters, append this suffix to the
* truncated badge text and display it as the badge text instead.
*/
static final String DEFAULT_EXCEED_MAX_BADGE_TEXT_SUFFIX = "";
static final String DEFAULT_EXCEED_MAX_BADGE_TEXT_SUFFIX = "\u2026";

/**
* The badge offset begins at the edge of the anchor.
Expand Down

0 comments on commit 532b65d

Please sign in to comment.