Fix NPE in isCandidateStripVisible()
Change-Id: I03d3c4806b51e7f902c43887a6769bffbffeccafmain
parent
5cd87e1b1c
commit
b5e00d5841
|
@ -1452,6 +1452,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
}
|
||||
|
||||
private boolean isCandidateStripVisible() {
|
||||
if (mCandidateView == null)
|
||||
return false;
|
||||
if (mCandidateView.isShowingAddToDictionaryHint() || TextEntryState.isCorrecting())
|
||||
return true;
|
||||
if (!isShowingSuggestionsStrip())
|
||||
|
|
Loading…
Reference in New Issue