From 4c390f14f4f344ce63c04fface5c8a2a11061412 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 14 Jul 2023 08:51:07 +0800 Subject: [PATCH] Clean up Android debug code * java/org/gnu/emacs/EmacsInputConnection.java (getSurroundingText): Don't print debug information if DEBUG_IC is off. --- java/org/gnu/emacs/EmacsInputConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () + "," -- 2.39.2