Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5e00d58 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Fix NPE in isCandidateStripVisible()

Change-Id: I03d3c4806b51e7f902c43887a6769bffbffeccaf
parent 5cd87e1b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1452,6 +1452,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    }
    }


    private boolean isCandidateStripVisible() {
    private boolean isCandidateStripVisible() {
        if (mCandidateView == null)
            return false;
        if (mCandidateView.isShowingAddToDictionaryHint() || TextEntryState.isCorrecting())
        if (mCandidateView.isShowingAddToDictionaryHint() || TextEntryState.isCorrecting())
            return true;
            return true;
        if (!isShowingSuggestionsStrip())
        if (!isShowingSuggestionsStrip())