aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-09-08 13:11:15 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-09-08 13:11:15 +0000
commit1d0ab483d183dcffbee4f2d64ccc7b10fbca505b (patch)
tree8b50be6ac2a5901022ccdfee557ecb90b91c5042 /app/src/main/java/ml/docilealligator/infinityforreddit
parent5fddea1362cf65968abc49550ada834f2ddaa37e (diff)
downloadinfinity-for-reddit-1d0ab483d183dcffbee4f2d64ccc7b10fbca505b.tar
infinity-for-reddit-1d0ab483d183dcffbee4f2d64ccc7b10fbca505b.tar.gz
infinity-for-reddit-1d0ab483d183dcffbee4f2d64ccc7b10fbca505b.tar.bz2
infinity-for-reddit-1d0ab483d183dcffbee4f2d64ccc7b10fbca505b.tar.lz
infinity-for-reddit-1d0ab483d183dcffbee4f2d64ccc7b10fbca505b.tar.xz
infinity-for-reddit-1d0ab483d183dcffbee4f2d64ccc7b10fbca505b.tar.zst
infinity-for-reddit-1d0ab483d183dcffbee4f2d64ccc7b10fbca505b.zip
Fix gfycat videos cannot be downloaded.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
index a9e366ca..f82e85b7 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
@@ -354,6 +354,8 @@ public class ViewVideoActivity extends AppCompatActivity {
} else if (videoType == VIDEO_TYPE_GFYCAT || videoType == VIDEO_TYPE_REDGIFS) {
if (savedInstanceState != null) {
videoDownloadUrl = savedInstanceState.getString(VIDEO_DOWNLOAD_URL_STATE);
+ } else {
+ videoDownloadUrl = intent.getStringExtra(EXTRA_VIDEO_DOWNLOAD_URL);
}
String gfycatId = intent.getStringExtra(EXTRA_GFYCAT_ID);