aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-15 14:40:45 +0900
committerJean Chalard <jchalard@google.com>2012-03-15 14:48:47 +0900
commit4e746588836474b87960f392c716852f3b373c86 (patch)
tree0eb8dac6b2554fba1870ca8256921ee15f567bb2 /java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
parent123407261cdab5d3eced0b18eaa7a1d59d6ae887 (diff)
downloadlatinime-4e746588836474b87960f392c716852f3b373c86.tar.gz
latinime-4e746588836474b87960f392c716852f3b373c86.tar.xz
latinime-4e746588836474b87960f392c716852f3b373c86.zip
Optimization
All calls to this methods are made with an actual String. No sense beating ourselves with an interface stick. Change-Id: I6ef98286be6f81f73864b04f3a17e68f36a6e542
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
index b8f92e40f..a4f0cf5df 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
@@ -502,11 +502,11 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
hintView, 1.0f - mCenterSuggestionWeight, ViewGroup.LayoutParams.MATCH_PARENT);
}
- private static CharSequence getDebugInfo(SuggestedWords suggestions, int pos) {
+ private static String getDebugInfo(SuggestedWords suggestions, int pos) {
if (DBG && pos < suggestions.size()) {
final SuggestedWordInfo wordInfo = suggestions.getInfo(pos);
if (wordInfo != null) {
- final CharSequence debugInfo = wordInfo.getDebugString();
+ final String debugInfo = wordInfo.getDebugString();
if (!TextUtils.isEmpty(debugInfo)) {
return debugInfo;
}