From fb9b50671d6c607b7ef256e233f6294831fb03a1 Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Tue, 17 Sep 2013 16:37:34 +0900 Subject: [PATCH] Temporary disable saving keys of emoticons to recents Bug: 10538430 Change-Id: I4c3d0d692eecdd3bb5e780bdaca46f3310065471 --- .../com/android/inputmethod/keyboard/EmojiKeyboardView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/keyboard/EmojiKeyboardView.java b/java/src/com/android/inputmethod/keyboard/EmojiKeyboardView.java index 546fa8140..702ed2075 100644 --- a/java/src/com/android/inputmethod/keyboard/EmojiKeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/EmojiKeyboardView.java @@ -505,7 +505,10 @@ public final class EmojiKeyboardView extends LinearLayout implements OnTabChange @Override public void onKeyClick(final Key key) { - mEmojiKeyboardAdapter.addRecentKey(key); + // TODO: Save emoticons to recents + if (mEmojiCategory.getCurrentCategoryId() != CATEGORY_ID_EMOTICONS) { + mEmojiKeyboardAdapter.addRecentKey(key); + } mEmojiCategory.saveLastTypedCategoryPage(); final int code = key.getCode(); if (code == Constants.CODE_OUTPUT_TEXT) {