mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix NPE
NPE has occured while getting containerHeight in LatinIME.onComputeInsets(). Change-Id: Ib906c20791a1f80a5c484a75eead9d2816a9da1b
This commit is contained in:
parent
905a6cdcba
commit
2951aa7e93
@ -855,7 +855,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||
public void onComputeInsets(InputMethodService.Insets outInsets) {
|
||||
super.onComputeInsets(outInsets);
|
||||
final KeyboardView inputView = mKeyboardSwitcher.getKeyboardView();
|
||||
if (inputView == null)
|
||||
if (inputView == null || mCandidateViewContainer == null)
|
||||
return;
|
||||
final int containerHeight = mCandidateViewContainer.getHeight();
|
||||
int touchY = containerHeight;
|
||||
|
Loading…
x
Reference in New Issue
Block a user