From 9f6485a448eeae7a3491d83ec19d21a9d55416fb Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 26 Dec 2011 21:13:36 +0900 Subject: [PATCH] Optimize KeybaordView.invalidateAllKeys a bit Change-Id: I118c792219f649b7297477c78fa725c678650159 --- java/src/com/android/inputmethod/keyboard/KeyboardView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index a174fd98f..abc220e34 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -944,6 +944,7 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy { public void invalidateAllKeys() { mDirtyRect.union(0, 0, getWidth(), getHeight()); mBufferNeedsUpdate = true; + mInvalidatedKey = null; invalidate(); }