Skip to content

Commit

Permalink
Show last letters of the selected language. Fixes MozillaReality#2945
Browse files Browse the repository at this point in the history
1. updated getLanguageIndex function so that for text without '(' or '[' function returns full length of text instead of lenth -1
  • Loading branch information
daron-walters committed Apr 9, 2020
1 parent 2d38f82 commit cbe3555
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private int getLanguageIndex(@NonNull String text) {
return text.indexOf("[");
}

return text.length() - 1;
return text.length();
}

private SpannableStringBuilder getSpannedLanguageText(@NonNull String language) {
Expand Down

0 comments on commit cbe3555

Please sign in to comment.