Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 6337721

Browse files
Show last letters of the selected language. Fixes #2945 (#3143)
1. updated getLanguageIndex function so that for text without '(' or '[' function returns full length of text instead of lenth -1
1 parent ce6de42 commit 6337721

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/LanguageOptionsView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private int getLanguageIndex(@NonNull String text) {
123123
return text.indexOf("[");
124124
}
125125

126-
return text.length() - 1;
126+
return text.length();
127127
}
128128

129129
private SpannableStringBuilder getSpannedLanguageText(@NonNull String language) {

0 commit comments

Comments
 (0)