Merge "Clear user's input and manually picked suggestion"

main
satok 2010-05-31 05:20:04 -07:00 committed by Gerrit Code Review
commit bfccd09079
1 changed files with 4 additions and 0 deletions

View File

@ -342,6 +342,10 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
// TODO: Handle CharSequence instead of String
public static void logOnClickSuggestion(String before, String after, int position) {
if (sLogEnabled) {
if (before.equals(after)) {
before = "";
after = "";
}
String[] strings = new String[] {before, after, String.valueOf(position)};
sLatinImeLogger.sendLogToDropBox(ID_CLICKSUGGESTION, strings);
}