Fix a null object reference crash on Emoji Palette
Do nothing if the current EmojiPageKeyboardView is null. BUG: 13006906 Change-Id: I169b70122ec939075b5be033953b48762fd528fc Conflicts: java/src/com/android/inputmethod/keyboard/EmojiPalettesView.java
This commit is contained in:
parent
b89c784f27
commit
6011878e31
1 changed files with 4 additions and 2 deletions
|
@ -723,8 +723,10 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange
|
|||
// Make sure the delayed key-down event (highlight effect and haptic feedback) will be
|
||||
// canceled.
|
||||
final EmojiPageKeyboardView currentKeyboardView =
|
||||
mActiveKeyboardViews.get(mActivePosition);
|
||||
currentKeyboardView.releaseCurrentKey();
|
||||
mActiveKeyboardViews.get(mActivePosition);
|
||||
if (currentKeyboardView != null) {
|
||||
currentKeyboardView.releaseCurrentKey();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue