Merge "Temporary disable saving keys of emoticons to recents"

main
Satoshi Kataoka 2013-09-17 07:44:56 +00:00 committed by Android (Google) Code Review
commit d2cafb0305
1 changed files with 4 additions and 1 deletions

View File

@ -505,7 +505,10 @@ public final class EmojiKeyboardView extends LinearLayout implements OnTabChange
@Override @Override
public void onKeyClick(final Key key) { public void onKeyClick(final Key key) {
// TODO: Save emoticons to recents
if (mEmojiCategory.getCurrentCategoryId() != CATEGORY_ID_EMOTICONS) {
mEmojiKeyboardAdapter.addRecentKey(key); mEmojiKeyboardAdapter.addRecentKey(key);
}
mEmojiCategory.saveLastTypedCategoryPage(); mEmojiCategory.saveLastTypedCategoryPage();
final int code = key.getCode(); final int code = key.getCode();
if (code == Constants.CODE_OUTPUT_TEXT) { if (code == Constants.CODE_OUTPUT_TEXT) {