diff options
author | 2011-08-02 14:35:18 -0700 | |
---|---|---|
committer | 2011-08-02 17:12:02 -0700 | |
commit | 1be29abab2e112f0253a8a5da3478740bb866d27 (patch) | |
tree | 90e98602f83344bf01b9c3dbfdae08fb4dd88458 /tests/src/com/android/inputmethod/latin/SuggestHelper.java | |
parent | 047f63f5591d81b349c7f43e84b7b2239f275b50 (diff) | |
download | latinime-1be29abab2e112f0253a8a5da3478740bb866d27.tar.gz latinime-1be29abab2e112f0253a8a5da3478740bb866d27.tar.xz latinime-1be29abab2e112f0253a8a5da3478740bb866d27.zip |
Cleanup Keyboard related code and rename some classes
This is a follow up change of I90ffbde0
Bug: 5023981
Change-Id: I3a6b862d05f5f907dee954cd6d6fee983b20ab5e
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestHelper.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/SuggestHelper.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/SuggestHelper.java index f9ea1805a..773674384 100644 --- a/tests/src/com/android/inputmethod/latin/SuggestHelper.java +++ b/tests/src/com/android/inputmethod/latin/SuggestHelper.java @@ -16,16 +16,15 @@ package com.android.inputmethod.latin; +import android.content.Context; +import android.text.TextUtils; + import com.android.inputmethod.keyboard.Key; import com.android.inputmethod.keyboard.KeyDetector; import com.android.inputmethod.keyboard.KeyboardId; import com.android.inputmethod.keyboard.LatinKeyboard; -import android.content.Context; -import android.text.TextUtils; - import java.io.File; -import java.util.List; public class SuggestHelper { protected final Suggest mSuggest; @@ -66,8 +65,7 @@ public class SuggestHelper { } private void addKeyInfo(WordComposer word, char c) { - final List<Key> keys = mKeyboard.getKeys(); - for (final Key key : keys) { + for (final Key key : mKeyboard.mKeys) { if (key.mCode == c) { final int x = key.mX + key.mWidth / 2; final int y = key.mY + key.mHeight / 2; |