diff options
author | 2014-05-19 05:36:32 +0000 | |
---|---|---|
committer | 2014-05-19 05:36:32 +0000 | |
commit | ca0909c13d860d01984f15549d88a2b89fce8a65 (patch) | |
tree | b953d4a600625e9c93d8f9060d1d1c862da47c81 /java/src | |
parent | a8daf43e92848df7613ff3f5111d6c8ad75ee395 (diff) | |
parent | 3bfacd445ec5a54d5b27ae0818abc342b466aa6d (diff) | |
download | latinime-ca0909c13d860d01984f15549d88a2b89fce8a65.tar.gz latinime-ca0909c13d860d01984f15549d88a2b89fce8a65.tar.xz latinime-ca0909c13d860d01984f15549d88a2b89fce8a65.zip |
am 3bfacd44: Merge "Remove Emoji delete key UX hack"
* commit '3bfacd445ec5a54d5b27ae0818abc342b466aa6d':
Remove Emoji delete key UX hack
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/emoji/EmojiPalettesView.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/emoji/EmojiPalettesView.java b/java/src/com/android/inputmethod/keyboard/emoji/EmojiPalettesView.java index 3813c578a..8e4595703 100644 --- a/java/src/com/android/inputmethod/keyboard/emoji/EmojiPalettesView.java +++ b/java/src/com/android/inputmethod/keyboard/emoji/EmojiPalettesView.java @@ -416,14 +416,11 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange private static class DeleteKeyOnTouchListener implements OnTouchListener { static final long MAX_REPEAT_COUNT_TIME = TimeUnit.SECONDS.toMillis(30); - final int mDeleteKeyPressedBackgroundColor; final long mKeyRepeatStartTimeout; final long mKeyRepeatInterval; public DeleteKeyOnTouchListener(Context context) { final Resources res = context.getResources(); - mDeleteKeyPressedBackgroundColor = - res.getColor(R.color.emoji_key_pressed_background_color); mKeyRepeatStartTimeout = res.getInteger(R.integer.config_key_repeat_start_timeout); mKeyRepeatInterval = res.getInteger(R.integer.config_key_repeat_interval); mTimer = new CountDownTimer(MAX_REPEAT_COUNT_TIME, mKeyRepeatInterval) { @@ -500,7 +497,7 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange mTimer.cancel(); mRepeatCount = 0; handleKeyDown(); - v.setBackgroundColor(mDeleteKeyPressedBackgroundColor); + v.setPressed(true /* pressed */); mState = KEY_REPEAT_STATE_KEY_DOWN; mTimer.start(); } @@ -510,7 +507,7 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange if (mState == KEY_REPEAT_STATE_KEY_DOWN) { handleKeyUp(); } - v.setBackgroundColor(Color.TRANSPARENT); + v.setPressed(false /* pressed */); mState = KEY_REPEAT_STATE_INITIALIZED; } |