From 994530d9bdc7684cc4501b0ced567ae1b393c2e8 Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Wed, 20 Nov 2013 12:31:01 +0900 Subject: [PATCH] Show source dictionary name of suggestions in the debug mode Bug: 11772864 Change-Id: I393352494b1ef81d24622a22fe7556d09945d6ff --- java/src/com/android/inputmethod/latin/Suggest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index 0a4c7a55d..53f04b118 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -432,7 +432,8 @@ public final class Suggest { final String scoreInfoString; if (normalizedScore > 0) { scoreInfoString = String.format( - Locale.ROOT, "%d (%4.2f)", cur.mScore, normalizedScore); + Locale.ROOT, "%d (%4.2f), %s", cur.mScore, normalizedScore, + cur.mSourceDict.mDictType); } else { scoreInfoString = Integer.toString(cur.mScore); }