am 362ab36c: Fix a null object reference crash on Emoji Palette

* commit '362ab36cf009d724768e742c3b2e264387efc521':
  Fix a null object reference crash on Emoji Palette
This commit is contained in:
Yohei Yukawa 2014-02-13 17:56:36 -08:00 committed by Android Git Automerger
commit f45b3b98cf

View file

@ -724,8 +724,10 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange
// canceled.
final EmojiPageKeyboardView currentKeyboardView =
mActiveKeyboardViews.get(mActivePosition);
if (currentKeyboardView != null) {
currentKeyboardView.releaseCurrentKey();
}
}
@Override
public int getCount() {