diff options
4 files changed, 5 insertions, 5 deletions
diff --git a/nextword/src/main/java/com/anysoftkeyboard/nextword/Utils.java b/nextword/src/main/java/com/anysoftkeyboard/nextword/Utils.java index 991ca8e0a..ace0d58ff 100644 --- a/nextword/src/main/java/com/anysoftkeyboard/nextword/Utils.java +++ b/nextword/src/main/java/com/anysoftkeyboard/nextword/Utils.java @@ -9,7 +9,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public class Utils { - public static final boolean DEBUG = true; + public static final boolean DEBUG = BuildConfig.DEBUG; public static final String NEXT_WORD_SUGGESTION_OFF = "off"; public static final String NEXT_WORD_SUGGESTION_WORDS = "words"; public static final String NEXT_WORD_SUGGESTION_WORDS_AND_PUNCTUATIONS = "words_punctuations"; diff --git a/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java b/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java index 2bf9f8162..1c3ed76e9 100644 --- a/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java +++ b/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java @@ -432,7 +432,7 @@ public abstract class AnySoftKeyboard extends InputMethodService implements @Override public void onStartInputView(final EditorInfo attribute, final boolean restarting) { - Log.d(TAG, "onStartInputView(EditorInfo{imeOptions %d, inputType %d}, restarting %s", + Log.v(TAG, "onStartInputView(EditorInfo{imeOptions %d, inputType %d}, restarting %s", attribute.imeOptions, attribute.inputType, restarting); super.onStartInputView(attribute, restarting); diff --git a/src/main/java/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java b/src/main/java/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java index 775f73dee..c7e263703 100644 --- a/src/main/java/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java +++ b/src/main/java/com/anysoftkeyboard/keyboards/views/AnyKeyboardBaseView.java @@ -1685,7 +1685,7 @@ public class AnyKeyboardBaseView extends View implements icon = builder.buildDrawable(); if (icon != null) { mKeysIcons.put(keyCode, icon); - Log.d(TAG, "Current drawable cache size is %d", mKeysIcons.size()); + Log.v(TAG, "Current drawable cache size is %d", mKeysIcons.size()); } else { Log.w(TAG, "Can not find drawable for keyCode %d. Context lost?", keyCode); } diff --git a/src/main/java/com/anysoftkeyboard/utils/Log.java b/src/main/java/com/anysoftkeyboard/utils/Log.java index eefab5f49..362550aba 100644 --- a/src/main/java/com/anysoftkeyboard/utils/Log.java +++ b/src/main/java/com/anysoftkeyboard/utils/Log.java @@ -89,7 +89,7 @@ public class Log { private static final String LVL_V = "V"; public static void v(String TAG, String text, Object... args) { - if (BuildConfig.TESTING_BUILD) { + if (BuildConfig.DEBUG) { String msg = args == null ? text : msFormatter.format(text, args).toString(); msFormatBuilder.setLength(0); android.util.Log.v(TAG, msg); @@ -98,7 +98,7 @@ public class Log { } public static void v(String TAG, String text, Throwable t) { - if (BuildConfig.TESTING_BUILD) { + if (BuildConfig.DEBUG) { android.util.Log.v(TAG, text, t); addLog(LVL_V, TAG, text, t); } |
