From bf8bbcb0cd3149aa42e78e06452cf8d37a10d085 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:01:45 -0500 Subject: Load fallback video in other adapters. --- .../adapters/HistoryPostRecyclerViewAdapter.java | 90 ++++++++++++++++++++-- .../adapters/PostDetailRecyclerViewAdapter.java | 44 ++++++++++- .../adapters/PostRecyclerViewAdapter.java | 8 ++ .../videoautoplay/widget/Container.java | 1 - 4 files changed, 134 insertions(+), 9 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java index 39d79d39..8c538e47 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java @@ -44,6 +44,7 @@ import com.bumptech.glide.load.engine.GlideException; import com.bumptech.glide.request.RequestListener; import com.bumptech.glide.request.RequestOptions; import com.bumptech.glide.request.target.Target; +import com.google.android.exoplayer2.PlaybackException; import com.google.android.exoplayer2.Tracks; import com.google.android.exoplayer2.ui.AspectRatioFrameLayout; import com.google.android.exoplayer2.ui.DefaultTimeBar; @@ -793,7 +794,7 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter players = playerManager.getPlayers(); // 1. Find players those are managed but not qualified to play anymore. -- cgit v1.2.3