Skip to content

Commit

Permalink
Set the direction according to the locale
Browse files Browse the repository at this point in the history
  • Loading branch information
codokie authored Mar 19, 2024
1 parent 45dc4fb commit bef29b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public StripVisibilityGroup(final View suggestionStripView,
public void setLayoutDirection(final boolean isRtlLanguage) {
final int layoutDirection = isRtlLanguage ? ViewCompat.LAYOUT_DIRECTION_RTL
: ViewCompat.LAYOUT_DIRECTION_LTR;
ViewCompat.setLayoutDirection(mSuggestionStripView, ViewCompat.LAYOUT_DIRECTION_LTR);
ViewCompat.setLayoutDirection(mSuggestionStripView, ViewCompat.LAYOUT_DIRECTION_LOCALE);
ViewCompat.setLayoutDirection(mSuggestionsStrip, layoutDirection);
}

Expand Down

0 comments on commit bef29b2

Please sign in to comment.