am cfcf6660: Reinstate a call to UsabilityStudyLogUtils#writeChar()

* commit 'cfcf6660fc369fefd4028451334a9c2eda9bc4e5':
  Reinstate a call to UsabilityStudyLogUtils#writeChar()
main
Ken Wakasa 2013-08-09 04:30:46 -07:00 committed by Android Git Automerger
commit cf575f8937
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@ package com.android.inputmethod.latin.utils;
import android.inputmethodservice.InputMethodService; import android.inputmethodservice.InputMethodService;
import com.android.inputmethod.annotations.UsedForTesting; import com.android.inputmethod.annotations.UsedForTesting;
import com.android.inputmethod.latin.LatinImeLogger;
import com.android.inputmethod.latin.settings.Settings; import com.android.inputmethod.latin.settings.Settings;
public final class UserLogRingCharBuffer { public final class UserLogRingCharBuffer {
@ -64,6 +65,9 @@ public final class UserLogRingCharBuffer {
if (!mEnabled) { if (!mEnabled) {
return; return;
} }
if (LatinImeLogger.sUsabilityStudy) {
UsabilityStudyLogUtils.getInstance().writeChar(c, x, y);
}
mCharBuf[mEnd] = c; mCharBuf[mEnd] = c;
mXBuf[mEnd] = x; mXBuf[mEnd] = x;
mYBuf[mEnd] = y; mYBuf[mEnd] = y;