From: Po Lu Date: Fri, 14 Jul 2023 00:51:07 +0000 (+0800) Subject: Clean up Android debug code X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4c390f14f4f344ce63c04fface5c8a2a11061412;p=emacs.git Clean up Android debug code * java/org/gnu/emacs/EmacsInputConnection.java (getSurroundingText): Don't print debug information if DEBUG_IC is off. --- diff --git a/java/org/gnu/emacs/EmacsInputConnection.java b/java/org/gnu/emacs/EmacsInputConnection.java index f8dce5dfa79..c3764a7b29f 100644 --- a/java/org/gnu/emacs/EmacsInputConnection.java +++ b/java/org/gnu/emacs/EmacsInputConnection.java @@ -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 () + ","