diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-06 09:35:54 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-06 09:35:54 +0000 |
commit | fe898a5c6c6cea96ab29e3677f9c89435f6c1075 (patch) | |
tree | eb88979822d29fb05f8807e49b1a3fc54f5398da /app/src/main/java/CustomView/CustomMarkwonView.java | |
parent | 5bb9cf789143725c7645ec54ed908ea52a255770 (diff) | |
download | infinity-for-reddit-fe898a5c6c6cea96ab29e3677f9c89435f6c1075.tar infinity-for-reddit-fe898a5c6c6cea96ab29e3677f9c89435f6c1075.tar.gz infinity-for-reddit-fe898a5c6c6cea96ab29e3677f9c89435f6c1075.tar.bz2 infinity-for-reddit-fe898a5c6c6cea96ab29e3677f9c89435f6c1075.tar.lz infinity-for-reddit-fe898a5c6c6cea96ab29e3677f9c89435f6c1075.tar.xz infinity-for-reddit-fe898a5c6c6cea96ab29e3677f9c89435f6c1075.tar.zst infinity-for-reddit-fe898a5c6c6cea96ab29e3677f9c89435f6c1075.zip |
Create PostMediaService to submit video and image posts.
Diffstat (limited to 'app/src/main/java/CustomView/CustomMarkwonView.java')
-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); |