mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix NPE
Change-Id: Ia2c7d9e9298330ae991956fca64b225adaeff898
This commit is contained in:
parent
8aee759262
commit
7e9615f218
@ -843,7 +843,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||||||
|
|
||||||
private void setSuggestionStripShownInternal(boolean shown, boolean needsInputViewShown) {
|
private void setSuggestionStripShownInternal(boolean shown, boolean needsInputViewShown) {
|
||||||
// TODO: Modify this if we support candidates with hard keyboard
|
// TODO: Modify this if we support candidates with hard keyboard
|
||||||
if (onEvaluateInputViewShown()) {
|
if (onEvaluateInputViewShown() && mCandidateViewContainer != null) {
|
||||||
final boolean shouldShowCandidates = shown
|
final boolean shouldShowCandidates = shown
|
||||||
&& (needsInputViewShown ? mKeyboardSwitcher.isInputViewShown() : true);
|
&& (needsInputViewShown ? mKeyboardSwitcher.isInputViewShown() : true);
|
||||||
if (isExtractViewShown()) {
|
if (isExtractViewShown()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user