summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java b/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java
index d2f9bc7..33b4fc7 100644
--- a/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java
+++ b/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java
@@ -75,7 +75,7 @@ public class AutofillPopup extends DropdownPopupWindow implements AdapterView.On
* Filters the Autofill suggestions to the ones that we support and shows the popup.
* @param suggestions Autofill suggestion data.
*/
- public void filterAndShow(AutofillSuggestion[] suggestions) {
+ public void filterAndShow(AutofillSuggestion[] suggestions, boolean isRtl) {
mSuggestions = new ArrayList<AutofillSuggestion>(Arrays.asList(suggestions));
// Remove the AutofillSuggestions with IDs that are not supported by Android
ArrayList<DropdownItem> cleanedData = new ArrayList<DropdownItem>();
@@ -91,6 +91,8 @@ public class AutofillPopup extends DropdownPopupWindow implements AdapterView.On
}
setAdapter(new DropdownAdapter(mContext, cleanedData, separators));
show();
+ getListView().setLayoutDirection(isRtl ? View.LAYOUT_DIRECTION_RTL :
+ View.LAYOUT_DIRECTION_LTR);
}
/**