aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-21 14:40:03 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-21 14:40:03 +0000
commit63e27eb23a87835768f725f4ab7e0dffd56575c2 (patch)
tree1652b8d514e9025404f63cada5027c2a5d2125ac
parent3eb608888b0d5563d9c111e25037bef218496300 (diff)
downloadinfinity-for-reddit-63e27eb23a87835768f725f4ab7e0dffd56575c2.tar
infinity-for-reddit-63e27eb23a87835768f725f4ab7e0dffd56575c2.tar.gz
infinity-for-reddit-63e27eb23a87835768f725f4ab7e0dffd56575c2.tar.bz2
infinity-for-reddit-63e27eb23a87835768f725f4ab7e0dffd56575c2.tar.lz
infinity-for-reddit-63e27eb23a87835768f725f4ab7e0dffd56575c2.tar.xz
infinity-for-reddit-63e27eb23a87835768f725f4ab7e0dffd56575c2.tar.zst
infinity-for-reddit-63e27eb23a87835768f725f4ab7e0dffd56575c2.zip
Support one more image domain. Have not validate the link yet.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
index 2a26ae10..e4b9387c 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java
@@ -118,7 +118,11 @@ public class LinkResolverActivity extends AppCompatActivity {
List<String> segments = uri.getPathSegments();
if (authority != null) {
- if (authority.equals("v.redd.it")) {
+ if (authority.equals("reddit-uploaded-media.s3-accelerate.amazonaws.com")) {
+ Intent intent = new Intent(this, ViewImageOrGifActivity.class);
+ intent.putExtra(ViewImageOrGifActivity.EXTRA_IMAGE_URL_KEY, uri.toString());
+ startActivity(intent);
+ } else if (authority.equals("v.redd.it")) {
Intent intent = new Intent(this, ViewVideoActivity.class);
intent.putExtra(ViewVideoActivity.EXTRA_VIDEO_TYPE, ViewVideoActivity.VIDEO_TYPE_V_REDD_IT);
intent.putExtra(ViewVideoActivity.EXTRA_V_REDD_IT_URL, uri.toString());