]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up Android debug code
authorPo Lu <luangruo@yahoo.com>
Fri, 14 Jul 2023 00:51:07 +0000 (08:51 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 14 Jul 2023 00:51:07 +0000 (08:51 +0800)
* java/org/gnu/emacs/EmacsInputConnection.java
(getSurroundingText): Don't print debug information if DEBUG_IC
is off.

java/org/gnu/emacs/EmacsInputConnection.java

index f8dce5dfa79b3729176850a0803d7a6b8193b695..c3764a7b29f85cc0f1a13bb5f46be6a2ef3e197e 100644 (file)
@@ -587,7 +587,7 @@ public final class EmacsInputConnection implements InputConnection
     text = EmacsNative.getSurroundingText (windowHandle, beforeLength,
                                           afterLength, flags);
 
-    if (text != null)
+    if (EmacsService.DEBUG_IC && text != null)
       Log.d (TAG, ("getSurroundingText: "
                   + text.getSelectionStart ()
                   + ","