Skip to content

Commit

Permalink
Fixed text alignment for RTL selects
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Jul 19, 2023
1 parent 2d544e1 commit 9404b3d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ void setUpButton(TextView button, int index) {
button.setTextSize(TypedValue.COMPLEX_UNIT_DIP, QuestionFontSizeUtils.getQuestionFontSize());
button.setText(HtmlUtils.textToHtml(prompt.getSelectChoiceText(filteredItems.get(index))));
button.setTag(items.indexOf(filteredItems.get(index)));
button.setGravity(LocalizedApplicationKt.isLTR(context) ? Gravity.START : Gravity.END);
button.setTextAlignment(LocalizedApplicationKt.isLTR(context) ? View.TEXT_ALIGNMENT_TEXT_START : View.TEXT_ALIGNMENT_TEXT_END);
}

boolean isItemSelected(List<Selection> selectedItems, @NonNull Selection item) {
Expand Down

0 comments on commit 9404b3d

Please sign in to comment.