From f04da95400e409dbb4ba33653f075bc76e091ef1 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Wed, 6 May 2009 15:46:00 -0700 Subject: Fix keyboard redraw bug on long-press of CapsLock. Expose invalidateKey and invalidateAllKeys for subclasses to call when needed. --- api/current.xml | 24 +++++++++++++++++ .../android/inputmethodservice/KeyboardView.java | 30 ++++++++++++++++------ 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/api/current.xml b/api/current.xml index ec84c0d0f034..7c5e6675482f 100644 --- a/api/current.xml +++ b/api/current.xml @@ -61016,6 +61016,30 @@ visibility="public" > + + + + + + = mKeys.length) { return; } @@ -991,7 +1005,7 @@ public class KeyboardView extends View implements View.OnClickListener { mPopupKeyboard.showAtLocation(this, Gravity.NO_GRAVITY, x, y); mMiniKeyboardOnScreen = true; //mMiniKeyboard.onTouchEvent(getTranslatedEvent(me)); - invalidateAll(); + invalidateAllKeys(); return true; } return false; @@ -1164,7 +1178,7 @@ public class KeyboardView extends View implements View.OnClickListener { if (mPopupKeyboard.isShowing()) { mPopupKeyboard.dismiss(); mMiniKeyboardOnScreen = false; - invalidateAll(); + invalidateAllKeys(); } } -- cgit v1.2.3-59-g8ed1b