From 4a58527d1bdac6564c48b06e27fb2206088c76ca Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:09:22 -0500 Subject: Version 7.0.1. Load fallback video for failed redgifs and streamable links in ViewVideoActivity. --- .../infinityforreddit/activities/ViewVideoActivity.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/src/main') 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 eadeba53..b631a590 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java @@ -737,7 +737,8 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe @Override public void failed(int errorCode) { progressBar.setVisibility(View.GONE); - Toast.makeText(ViewVideoActivity.this, R.string.fetch_redgifs_video_failed, Toast.LENGTH_SHORT).show(); + loadFallbackVideo(savedInstanceState); + //Toast.makeText(ViewVideoActivity.this, R.string.fetch_redgifs_video_failed, Toast.LENGTH_SHORT).show(); } }); } @@ -845,7 +846,9 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe @Override public void failed() { - Toast.makeText(ViewVideoActivity.this, R.string.fetch_streamable_video_failed, Toast.LENGTH_SHORT).show(); + progressBar.setVisibility(View.GONE); + loadFallbackVideo(savedInstanceState); + //Toast.makeText(ViewVideoActivity.this, R.string.fetch_streamable_video_failed, Toast.LENGTH_SHORT).show(); } }); } -- cgit v1.2.3