From 2436099d35285a8d9a3f9a6926ca75315db89922 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Tue, 4 Sep 2018 18:43:06 +0200 Subject: [PATCH] fix links with uppercase letters in scheme not being opened closes #801 --- app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java b/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java index 0e24a025..725cea10 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java +++ b/app/src/main/java/com/keylesspalace/tusky/util/LinkHelper.java @@ -126,7 +126,7 @@ public class LinkHelper { * @param context context */ public static void openLink(String url, Context context) { - Uri uri = Uri.parse(url); + Uri uri = Uri.parse(url).normalizeScheme(); boolean useCustomTabs = PreferenceManager.getDefaultSharedPreferences(context) .getBoolean("customTabs", false);