aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-03-14 02:54:21 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-14 02:54:21 -0700
commit02e70cf999585d92530fd2fe73c163deed914b2d (patch)
tree7cff55c6b25725f46086620f30578d69540b1466 /java/src
parent4a08b2f0e4d0ee7f1d89b4eb3c77c37d987584ea (diff)
parenta5f7969f5b54e2aca304787a89134e4e3574c2ee (diff)
downloadlatinime-02e70cf999585d92530fd2fe73c163deed914b2d.tar.gz
latinime-02e70cf999585d92530fd2fe73c163deed914b2d.tar.xz
latinime-02e70cf999585d92530fd2fe73c163deed914b2d.zip
Merge "Use HashSet to hold keys in Keyboard"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/keyboard/Keyboard.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/Keyboard.java b/java/src/com/android/inputmethod/keyboard/Keyboard.java
index 44c6a4966..cdf07ed70 100644
--- a/java/src/com/android/inputmethod/keyboard/Keyboard.java
+++ b/java/src/com/android/inputmethod/keyboard/Keyboard.java
@@ -41,6 +41,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
@@ -225,7 +226,7 @@ public class Keyboard {
public int GRID_WIDTH;
public int GRID_HEIGHT;
- public final ArrayList<Key> mKeys = new ArrayList<Key>();
+ public final HashSet<Key> mKeys = new HashSet<Key>();
public final ArrayList<Key> mShiftKeys = new ArrayList<Key>();
public final ArrayList<Key> mAltCodeKeysWhileTyping = new ArrayList<Key>();
public final KeyboardIconsSet mIconsSet = new KeyboardIconsSet();