mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-30 11:38:07 +00:00
set suggestion strip layout direction on changing layout
This commit is contained in:
parent
37caf9ad9a
commit
d4a47508cd
2 changed files with 6 additions and 1 deletions
|
@ -889,6 +889,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
mInputLogic.onSubtypeChanged(SubtypeLocaleUtils.getCombiningRulesExtraValue(subtype),
|
mInputLogic.onSubtypeChanged(SubtypeLocaleUtils.getCombiningRulesExtraValue(subtype),
|
||||||
mSettings.getCurrent());
|
mSettings.getCurrent());
|
||||||
loadKeyboard();
|
loadKeyboard();
|
||||||
|
mSuggestionStripView.setRtl(mRichImm.getCurrentSubtype().isRtlSubtype());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** alias to onCurrentInputMethodSubtypeChanged with a better name, as it's also used for internal switching */
|
/** alias to onCurrentInputMethodSubtypeChanged with a better name, as it's also used for internal switching */
|
||||||
|
|
|
@ -246,9 +246,13 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
|
||||||
mToolbarKey.setScaleX(mToolbarContainer.getVisibility() != VISIBLE ? 1f : -1f);
|
mToolbarKey.setScaleX(mToolbarContainer.getVisibility() != VISIBLE ? 1f : -1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setRtl(final boolean isRtlLanguage) {
|
||||||
|
mStripVisibilityGroup.setLayoutDirection(isRtlLanguage);
|
||||||
|
}
|
||||||
|
|
||||||
public void setSuggestions(final SuggestedWords suggestedWords, final boolean isRtlLanguage) {
|
public void setSuggestions(final SuggestedWords suggestedWords, final boolean isRtlLanguage) {
|
||||||
clear();
|
clear();
|
||||||
mStripVisibilityGroup.setLayoutDirection(isRtlLanguage);
|
setRtl(isRtlLanguage);
|
||||||
mSuggestedWords = suggestedWords;
|
mSuggestedWords = suggestedWords;
|
||||||
mStartIndexOfMoreSuggestions = mLayoutHelper.layoutAndReturnStartIndexOfMoreSuggestions(
|
mStartIndexOfMoreSuggestions = mLayoutHelper.layoutAndReturnStartIndexOfMoreSuggestions(
|
||||||
getContext(), mSuggestedWords, mSuggestionsStrip, this);
|
getContext(), mSuggestedWords, mSuggestionsStrip, this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue