Merge changes Iaed8abfb,I8e55b57c into jb-ub-latinimegoogle

* changes:
  LatinIME portion of StatsUtil change.
  Do not decorate committed spans.
This commit is contained in:
Dan Zivkovic 2015-06-23 20:55:22 +00:00 committed by Android (Google) Code Review
commit ecea6a6113
2 changed files with 7 additions and 3 deletions

View file

@ -104,4 +104,7 @@ public final class StatsUtils {
public static void onInputConnectionLaggy(final int operation, final long duration) {
}
public static void onDecoderLaggy(final int operation, final long duration) {
}
}

View file

@ -2158,9 +2158,10 @@ public final class InputLogic {
final SuggestedWords suggestedWords = mSuggestedWords;
// TODO: Locale should be determined based on context and the text given.
final Locale locale = getDictionaryFacilitatorLocale();
final CharSequence chosenWordWithSuggestions =
SuggestionSpanUtils.getTextWithSuggestionSpan(mLatinIME, chosenWord,
suggestedWords, locale);
final CharSequence chosenWordWithSuggestions = chosenWord;
// b/21926256
// SuggestionSpanUtils.getTextWithSuggestionSpan(mLatinIME, chosenWord,
// suggestedWords, locale);
if (DebugFlags.DEBUG_ENABLED) {
long runTimeMillis = System.currentTimeMillis() - startTimeMillis;
Log.d(TAG, "commitChosenWord() : " + runTimeMillis + " ms to run "