diff options
author | 2010-10-10 17:14:19 -0700 | |
---|---|---|
committer | 2010-10-10 17:14:19 -0700 | |
commit | e56e2d85dfe95a6dc67fd1bb6ac5514bd2719f81 (patch) | |
tree | 72dd94417ae809dbea8e2ff904c0c8a8fb019f54 /java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | |
parent | f156f30614aa5b3336f39d02da3e4ed0c46de9ed (diff) | |
parent | 02b8d91b2dbe4290d4b09d93a22efbc5552326db (diff) | |
download | latinime-e56e2d85dfe95a6dc67fd1bb6ac5514bd2719f81.tar.gz latinime-e56e2d85dfe95a6dc67fd1bb6ac5514bd2719f81.tar.xz latinime-e56e2d85dfe95a6dc67fd1bb6ac5514bd2719f81.zip |
am 02b8d91b: am 7e1f5a2d: Make sure to set symbol keyboard shifted
Merge commit '02b8d91b2dbe4290d4b09d93a22efbc5552326db'
* commit '02b8d91b2dbe4290d4b09d93a22efbc5552326db':
Make sure to set symbol keyboard shifted
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java index d319d4020..b160da231 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java @@ -47,10 +47,9 @@ import android.widget.PopupWindow; import android.widget.TextView; import java.util.ArrayList; -import java.util.HashMap; import java.util.LinkedList; import java.util.List; -import java.util.Map; +import java.util.WeakHashMap; /** * A view that renders a virtual {@link LatinKeyboard}. It handles rendering of keys and @@ -199,7 +198,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx private PopupWindow mMiniKeyboardPopup; private LatinKeyboardBaseView mMiniKeyboard; private View mMiniKeyboardParent; - private Map<Key,View> mMiniKeyboardCache; + private final WeakHashMap<Key, View> mMiniKeyboardCache = new WeakHashMap<Key, View>(); private int mMiniKeyboardOriginX; private int mMiniKeyboardOriginY; private long mMiniKeyboardPopupTime; @@ -489,7 +488,6 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx mPaint.setAlpha(255); mPadding = new Rect(0, 0, 0, 0); - mMiniKeyboardCache = new HashMap<Key,View>(); mKeyBackground.getPadding(mPadding); mSwipeThreshold = (int) (500 * res.getDisplayMetrics().density); |