From fe898a5c6c6cea96ab29e3677f9c89435f6c1075 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 6 Aug 2019 17:35:54 +0800 Subject: Create PostMediaService to submit video and image posts. --- app/src/main/java/CustomView/CustomMarkwonView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/CustomView/CustomMarkwonView.java') 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); -- cgit v1.2.3