From f4973b3d41b5b3335fe64f188a8fb64677010840 Mon Sep 17 00:00:00 2001 From: satok Date: Mon, 31 May 2010 21:07:39 +0900 Subject: [PATCH] Clear user's input and manually picked suggestion Change-Id: I7bbad73b87a9341440621489db7fbdb4ad81c7f6 --- java/src/com/android/inputmethod/latin/LatinImeLogger.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/src/com/android/inputmethod/latin/LatinImeLogger.java b/java/src/com/android/inputmethod/latin/LatinImeLogger.java index 002a3441e..fd2ae22f5 100644 --- a/java/src/com/android/inputmethod/latin/LatinImeLogger.java +++ b/java/src/com/android/inputmethod/latin/LatinImeLogger.java @@ -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); }