diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index e40c98d85b..01c76262f9 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -606,7 +606,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0 && image[0].getSource() != null) { Uri uri = Uri.parse(image[0].getSource()); - if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme())) { + if (UriHelper.isHyperLink(uri)) { ripple(event); if (onOpenLink(uri, null, false)) return true; @@ -5855,7 +5855,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0) + return Uri.parse(u.substring(0, semi).toLowerCase(Locale.ROOT) + u.substring(semi)); + } + + return uri; } static void test(Context context) {