Skip to content

Commit 25dea9d

Browse files
Fix to allow bolding of text that coincides with the end of body. (#1840)
1 parent 79788bf commit 25dea9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/util/ui/TextHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void boldAllOccurencesOfText(@NonNull SpannableStringBuilder build
1818
while (fromIndex < text.length()) {
1919
int start = text.indexOf(textToBold, fromIndex);
2020
int end = start + textToBold.length();
21-
if (start == -1 || end >= text.length()) {
21+
if (start == -1 || end > text.length()) {
2222
break;
2323
}
2424
builder.setSpan(new StyleSpan(Typeface.BOLD),

0 commit comments

Comments
 (0)