From 2a9e065f1a137a2e613c71bd87284114891d8f1a Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Thu, 19 Sep 2013 15:37:36 +0900 Subject: [PATCH] Fix hitbox of emoji key Bug: 10780368 Change-Id: If10c18fdb0e7f0b0460a721d55001ab0fef28664 --- .../inputmethod/keyboard/internal/DynamicGridKeyboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/keyboard/internal/DynamicGridKeyboard.java b/java/src/com/android/inputmethod/keyboard/internal/DynamicGridKeyboard.java index 2976e2323..0dd71e2ec 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/DynamicGridKeyboard.java +++ b/java/src/com/android/inputmethod/keyboard/internal/DynamicGridKeyboard.java @@ -193,7 +193,7 @@ public class DynamicGridKeyboard extends Keyboard { public void updateCorrdinates(final int x, final int y) { mCurrentX = x; mCurrentY = y; - getHitBox().offsetTo(x, y); + getHitBox().set(x, y, x + getWidth(), y + getHeight()); } @Override