From 4487a30e0dbca2ab18cf075e2b638f8dff6a72ca Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 19 Dec 2013 22:18:46 +0900 Subject: [PATCH] [IL19] Resolve a TODO. Bug: 8636060 Change-Id: Iec7c1001c46cf8e9a44422e3f9008e437cc5cab6 --- java/src/com/android/inputmethod/latin/LatinIME.java | 3 +-- .../com/android/inputmethod/latin/inputlogic/InputLogic.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 2c9426bf1..9175aad66 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -106,8 +106,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen Suggest.SuggestInitializationListener { private static final String TAG = LatinIME.class.getSimpleName(); private static final boolean TRACE = false; - // TODO[IL]: Make this private - public static boolean DEBUG; + private static boolean DEBUG = false; private static final int EXTENDED_TOUCHABLE_REGION_HEIGHT = 100; diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index f5dda990a..db27d22b7 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -933,7 +933,7 @@ public final class InputLogic { final int separatorLength = mLastComposedWord.mSeparatorString.length(); // TODO: should we check our saved separator against the actual contents of the text view? final int deleteLength = cancelLength + separatorLength; - if (LatinIME.DEBUG) { + if (LatinImeLogger.sDBG) { if (mWordComposer.isComposingWord()) { throw new RuntimeException("revertCommit, but we are composing a word"); }