diff options
author | 2012-07-30 04:56:42 -0700 | |
---|---|---|
committer | 2012-07-30 04:56:42 -0700 | |
commit | ed754b99915bfad79db615771dc73a60a089d3e2 (patch) | |
tree | 53dd834f4a7b3f1c1aeb889d34e2beac39e3496e /java/src/com/android/inputmethod/latin | |
parent | 213ff17429ed51e0c5010101e0d28adc597d9434 (diff) | |
parent | ca57f5ba40b587a7a7f8a023aca65e1b2127b2a6 (diff) | |
download | latinime-ed754b99915bfad79db615771dc73a60a089d3e2.tar.gz latinime-ed754b99915bfad79db615771dc73a60a089d3e2.tar.xz latinime-ed754b99915bfad79db615771dc73a60a089d3e2.zip |
am ca57f5ba: Move gesture preview parameters to KeyboardView attributes
* commit 'ca57f5ba40b587a7a7f8a023aca65e1b2127b2a6':
Move gesture preview parameters to KeyboardView attributes
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 22213be5e..95d75ebb7 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1363,9 +1363,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mWordComposer.setBatchInputPointers(batchPointers); final SuggestedWords suggestedWords = getSuggestedWords(); showSuggestionStrip(suggestedWords, null); - final String gesturePreviewText = (suggestedWords.size() > 0) + final String gestureFloatingPreviewText = (suggestedWords.size() > 0) ? suggestedWords.getWord(0) : null; - mKeyboardSwitcher.getKeyboardView().showGesturePreviewText(gesturePreviewText); + mKeyboardSwitcher.getKeyboardView() + .showGestureFloatingPreviewText(gestureFloatingPreviewText); } @Override @@ -1373,7 +1374,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mWordComposer.setBatchInputPointers(batchPointers); final SuggestedWords suggestedWords = getSuggestedWords(); showSuggestionStrip(suggestedWords, null); - mKeyboardSwitcher.getKeyboardView().showGesturePreviewText(null); + mKeyboardSwitcher.getKeyboardView().showGestureFloatingPreviewText(null); if (suggestedWords == null || suggestedWords.size() == 0) { return; } |