aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-02-28 16:09:22 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-02-28 16:09:22 +0000
commit4a58527d1bdac6564c48b06e27fb2206088c76ca (patch)
tree75982a1ce1aed52415bf72d555615f18b43008d2 /app/src/main
parent60677f3c2b6a3248566041c6ec779719e9bf870a (diff)
downloadinfinity-for-reddit-4a58527d1bdac6564c48b06e27fb2206088c76ca.tar
infinity-for-reddit-4a58527d1bdac6564c48b06e27fb2206088c76ca.tar.gz
infinity-for-reddit-4a58527d1bdac6564c48b06e27fb2206088c76ca.tar.bz2
infinity-for-reddit-4a58527d1bdac6564c48b06e27fb2206088c76ca.tar.lz
infinity-for-reddit-4a58527d1bdac6564c48b06e27fb2206088c76ca.tar.xz
infinity-for-reddit-4a58527d1bdac6564c48b06e27fb2206088c76ca.tar.zst
infinity-for-reddit-4a58527d1bdac6564c48b06e27fb2206088c76ca.zip
Version 7.0.1. Load fallback video for failed redgifs and streamable links in ViewVideoActivity.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java7
1 files changed, 5 insertions, 2 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 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();
}
});
}