From d28a1146501161b1906ac58d92e6b27fce1ef6c3 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 26 Feb 2025 10:51:36 +0100 Subject: [PATCH] Fix issue #1112 - Don't lowercase xmpp url --- .../main/java/app/fedilab/android/mastodon/helper/Helper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java b/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java index d7c1e3f5..a9d0340d 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java +++ b/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java @@ -706,7 +706,7 @@ public class Helper { if(url.toLowerCase().startsWith("xmpp:")) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - intent.setData(Uri.parse("https://xmpp.link/#" + url.toLowerCase().replace("xmpp:","")).normalizeScheme()); + intent.setData(Uri.parse("https://xmpp.link/#" + url.replace("xmpp:","")).normalizeScheme()); context.startActivity(intent); } else { Toasty.error(context, context.getString(R.string.toast_error), Toast.LENGTH_LONG).show(); @@ -724,7 +724,7 @@ public class Helper { context.startActivity(intent); } catch (Exception e) { if(url.toLowerCase().startsWith("xmpp:")) { - intent.setData(Uri.parse("https://xmpp.link/#" + url.toLowerCase().replace("xmpp:","")).normalizeScheme()); + intent.setData(Uri.parse("https://xmpp.link/#" + url.replace("xmpp:","")).normalizeScheme()); context.startActivity(intent); } else { Toasty.error(context, context.getString(R.string.toast_error), Toast.LENGTH_LONG).show();