aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/CustomView
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-06 09:35:54 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-06 09:35:54 +0000
commitfe898a5c6c6cea96ab29e3677f9c89435f6c1075 (patch)
treeeb88979822d29fb05f8807e49b1a3fc54f5398da /app/src/main/java/CustomView
parent5bb9cf789143725c7645ec54ed908ea52a255770 (diff)
downloadinfinity-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')
-rw-r--r--app/src/main/java/CustomView/CustomMarkwonView.java2
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);