diff options
Diffstat (limited to 'app/src/main/java/CustomView')
-rw-r--r-- | app/src/main/java/CustomView/CustomMarkwonView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/CustomView/CustomMarkwonView.java b/app/src/main/java/CustomView/CustomMarkwonView.java index 05c2e2fa..da6b2f55 100644 --- a/app/src/main/java/CustomView/CustomMarkwonView.java +++ b/app/src/main/java/CustomView/CustomMarkwonView.java @@ -41,7 +41,7 @@ public class CustomMarkwonView extends MarkwonView { builder.setToolbarColor(context.getResources().getColor(R.color.colorPrimary)); CustomTabsIntent customTabsIntent = builder.build(); Uri uri = Uri.parse(link); - if(uri.getHost() != null && uri.getHost().equals("www.reddit.com")) { + if(uri.getHost() != null && uri.getHost().contains("reddit.com")) { customTabsIntent.intent.setPackage(context.getPackageName()); } customTabsIntent.launchUrl(context, uri); |