Skip to content
Snippets Groups Projects
Commit b5e00d58 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Fix NPE in isCandidateStripVisible()

Change-Id: I03d3c4806b51e7f902c43887a6769bffbffeccaf
parent 5cd87e1b
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment