Show source dictionary name of suggestions in the debug mode

Bug: 11772864
Change-Id: I393352494b1ef81d24622a22fe7556d09945d6ff
This commit is contained in:
Satoshi Kataoka 2013-11-20 12:31:01 +09:00
parent 077b3def52
commit 994530d9bd

View file

@ -432,7 +432,8 @@ public final class Suggest {
final String scoreInfoString; final String scoreInfoString;
if (normalizedScore > 0) { if (normalizedScore > 0) {
scoreInfoString = String.format( scoreInfoString = String.format(
Locale.ROOT, "%d (%4.2f)", cur.mScore, normalizedScore); Locale.ROOT, "%d (%4.2f), %s", cur.mScore, normalizedScore,
cur.mSourceDict.mDictType);
} else { } else {
scoreInfoString = Integer.toString(cur.mScore); scoreInfoString = Integer.toString(cur.mScore);
} }