diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 6cb928321..dc2fe4c53 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -484,6 +484,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar final View inputView = mKeyboardSwitcher.onCreateInputView(); mCandidateViewContainer = inputView.findViewById(R.id.candidates_container); mCandidateView = (CandidateView) inputView.findViewById(R.id.candidates); + mCandidateView.setService(this); mCandidateStripHeight = (int)mResources.getDimension(R.dimen.candidate_strip_height); return inputView; }