mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix NPE
Change-Id: Ie4b8b657fc6cc5a819d4ea3a0ca4536e6fdf6825
This commit is contained in:
parent
d8850ae1ab
commit
281e180c33
@ -514,7 +514,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||||||
super.setInputView(view);
|
super.setInputView(view);
|
||||||
mCandidateViewContainer = view.findViewById(R.id.candidates_container);
|
mCandidateViewContainer = view.findViewById(R.id.candidates_container);
|
||||||
mCandidateView = (CandidateView) view.findViewById(R.id.candidates);
|
mCandidateView = (CandidateView) view.findViewById(R.id.candidates);
|
||||||
mCandidateView.setListener(this, view);
|
if (mCandidateView != null)
|
||||||
|
mCandidateView.setListener(this, view);
|
||||||
mCandidateStripHeight = (int)mResources.getDimension(R.dimen.candidate_strip_height);
|
mCandidateStripHeight = (int)mResources.getDimension(R.dimen.candidate_strip_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user