diff --git a/java/src/com/android/inputmethod/latin/LatinImeLogger.java b/java/src/com/android/inputmethod/latin/LatinImeLogger.java index c03d1a7ef..c03e7d01c 100644 --- a/java/src/com/android/inputmethod/latin/LatinImeLogger.java +++ b/java/src/com/android/inputmethod/latin/LatinImeLogger.java @@ -284,10 +284,8 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang public static void logOnAutoSuggestion(String before, String after) { if (sLogEnabled) { String[] strings = new String[] {before, after}; - synchronized (sLastAutoSuggestBefore) { + synchronized (LatinImeLogger.class) { sLastAutoSuggestBefore = before; - } - synchronized (sLastAutoSuggestAfter) { sLastAutoSuggestAfter = after; } sLatinImeLogger.sendLogToDropBox(ID_AUTOSUGGESTIONCANCELED, strings);