From 8fa0f13e6e05ba1e9e7f27f240f6ec7d08d09901 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 20 Oct 2023 19:09:22 +0800 Subject: [PATCH] Repair detection of empty mailto URLs * java/org/gnu/emacs/EmacsOpenActivity.java (onCreate): Additonally regard mailto:// as an empty URL, since Android does interpret them as such. --- java/org/gnu/emacs/EmacsOpenActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/gnu/emacs/EmacsOpenActivity.java b/java/org/gnu/emacs/EmacsOpenActivity.java index f0f1068d3e2..a5e8be2f238 100644 --- a/java/org/gnu/emacs/EmacsOpenActivity.java +++ b/java/org/gnu/emacs/EmacsOpenActivity.java @@ -470,7 +470,7 @@ public final class EmacsOpenActivity extends Activity whereupon Emacs should replace it with any address provided as EXTRA_EMAIL. */ - if (fileName.equals ("mailto:")) + if (fileName.equals ("mailto:") || fileName.equals ("mailto://")) { tem = intent.getCharSequenceExtra (Intent.EXTRA_EMAIL); -- 2.39.5