From c393cdcbaeb69912e4f64ea8762fcdd0f993a180 Mon Sep 17 00:00:00 2001 From: ryuunoakaihitomi <22442525+ryuunoakaihitomi@users.noreply.github.com> Date: Mon, 31 May 2021 18:57:05 +0800 Subject: [PATCH] Fix the crash not caused by ActivityNotFoundException --- .../src/main/java/io/noties/markwon/LinkResolverDef.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/markwon-core/src/main/java/io/noties/markwon/LinkResolverDef.java b/markwon-core/src/main/java/io/noties/markwon/LinkResolverDef.java index 5882613f..f30a861f 100644 --- a/markwon-core/src/main/java/io/noties/markwon/LinkResolverDef.java +++ b/markwon-core/src/main/java/io/noties/markwon/LinkResolverDef.java @@ -25,7 +25,9 @@ public class LinkResolverDef implements LinkResolver { try { context.startActivity(intent); } catch (ActivityNotFoundException e) { - Log.w("LinkResolverDef", "Actvity was not found for the link: '" + link + "'"); + Log.w("LinkResolverDef", "Activity was not found for the link: '" + link + "'"); + } catch (Exception e) { + Log.w("LinkResolverDef", e.getMessage(), e); } }