From 47725da22e484c3cbbbc0331b706f9f4272bc0b3 Mon Sep 17 00:00:00 2001 From: Grzegorz Orczykowski Date: Thu, 20 Jul 2023 01:07:24 +0200 Subject: [PATCH] Fixed text alignment for RTL selects --- .../collect/android/adapters/AbstractSelectListAdapter.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/collect_app/src/main/java/org/odk/collect/android/adapters/AbstractSelectListAdapter.java b/collect_app/src/main/java/org/odk/collect/android/adapters/AbstractSelectListAdapter.java index 17a2c8452d9..93f56eabf3c 100644 --- a/collect_app/src/main/java/org/odk/collect/android/adapters/AbstractSelectListAdapter.java +++ b/collect_app/src/main/java/org/odk/collect/android/adapters/AbstractSelectListAdapter.java @@ -47,7 +47,6 @@ import org.odk.collect.android.utilities.Appearances; import org.odk.collect.audioclips.Clip; import org.odk.collect.imageloader.GlideImageLoader; -import org.odk.collect.strings.localization.LocalizedApplicationKt; import java.io.File; import java.util.ArrayList; @@ -137,8 +136,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 selectedItems, @NonNull Selection item) {