From cfcf6660fc369fefd4028451334a9c2eda9bc4e5 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Fri, 9 Aug 2013 19:32:02 +0900 Subject: [PATCH] Reinstate a call to UsabilityStudyLogUtils#writeChar() The usability study mode has been broken. bug: 10251399 Change-Id: Iaa301241f102f412fa073f0d8b897a4c8b265a9c --- .../inputmethod/latin/utils/UserLogRingCharBuffer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/src/com/android/inputmethod/latin/utils/UserLogRingCharBuffer.java b/java/src/com/android/inputmethod/latin/utils/UserLogRingCharBuffer.java index 161386e2e..a75d353c9 100644 --- a/java/src/com/android/inputmethod/latin/utils/UserLogRingCharBuffer.java +++ b/java/src/com/android/inputmethod/latin/utils/UserLogRingCharBuffer.java @@ -19,6 +19,7 @@ package com.android.inputmethod.latin.utils; import android.inputmethodservice.InputMethodService; import com.android.inputmethod.annotations.UsedForTesting; +import com.android.inputmethod.latin.LatinImeLogger; import com.android.inputmethod.latin.settings.Settings; public final class UserLogRingCharBuffer { @@ -64,6 +65,9 @@ public final class UserLogRingCharBuffer { if (!mEnabled) { return; } + if (LatinImeLogger.sUsabilityStudy) { + UsabilityStudyLogUtils.getInstance().writeChar(c, x, y); + } mCharBuf[mEnd] = c; mXBuf[mEnd] = x; mYBuf[mEnd] = y;