fix potential crash

This commit is contained in:
Helium314 2023-11-04 12:05:23 +01:00
parent 6968488e45
commit aad8c68bf9

View file

@ -889,7 +889,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mInputLogic.onSubtypeChanged(SubtypeLocaleUtils.getCombiningRulesExtraValue(subtype),
mSettings.getCurrent());
loadKeyboard();
mSuggestionStripView.setRtl(mRichImm.getCurrentSubtype().isRtlSubtype());
if (mSuggestionStripView != null)
mSuggestionStripView.setRtl(mRichImm.getCurrentSubtype().isRtlSubtype());
}
/** alias to onCurrentInputMethodSubtypeChanged with a better name, as it's also used for internal switching */