diff options
author | 2010-10-08 10:51:09 -0700 | |
---|---|---|
committer | 2010-10-08 10:51:09 -0700 | |
commit | 02b8d91b2dbe4290d4b09d93a22efbc5552326db (patch) | |
tree | fb6b91af889c669dabda15c6061e02e851dd4d8c /java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | |
parent | 491bb105ff07568a6bc4335b6c83de108086ec87 (diff) | |
parent | 7e1f5a2d5a96c74691b3b09fa986efb7161e5a12 (diff) | |
download | latinime-02b8d91b2dbe4290d4b09d93a22efbc5552326db.tar.gz latinime-02b8d91b2dbe4290d4b09d93a22efbc5552326db.tar.xz latinime-02b8d91b2dbe4290d4b09d93a22efbc5552326db.zip |
am 7e1f5a2d: Make sure to set symbol keyboard shifted
Merge commit '7e1f5a2d5a96c74691b3b09fa986efb7161e5a12' into gingerbread-plus-aosp
* commit '7e1f5a2d5a96c74691b3b09fa986efb7161e5a12':
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 bcd1bb056..f96a3599d 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); |