From 1d0ab483d183dcffbee4f2d64ccc7b10fbca505b Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 8 Sep 2021 21:11:15 +0800 Subject: [PATCH] Fix gfycat videos cannot be downloaded. --- .../infinityforreddit/activities/ViewVideoActivity.java | 2 ++ 1 file changed, 2 insertions(+) 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);