aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-13 03:57:34 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-13 03:57:34 +0000
commitede3221f221c545487d583052d1d0004db260ad8 (patch)
tree467e8d35b9ae8e2c324a17a4e5b2e0c5b6a86481 /app/src/main/java/ml
parent245d53a039574add0d5fcdb556aed561bde7bc8d (diff)
downloadinfinity-for-reddit-ede3221f221c545487d583052d1d0004db260ad8.tar
infinity-for-reddit-ede3221f221c545487d583052d1d0004db260ad8.tar.gz
infinity-for-reddit-ede3221f221c545487d583052d1d0004db260ad8.tar.bz2
infinity-for-reddit-ede3221f221c545487d583052d1d0004db260ad8.tar.lz
infinity-for-reddit-ede3221f221c545487d583052d1d0004db260ad8.tar.xz
infinity-for-reddit-ede3221f221c545487d583052d1d0004db260ad8.tar.zst
infinity-for-reddit-ede3221f221c545487d583052d1d0004db260ad8.zip
Continue adding Card Layout 3.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
index 449bcf6f..df951ee7 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
@@ -2429,20 +2429,20 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
holder.itemView.setBackgroundTintList(ColorStateList.valueOf(mCardViewBackgroundColor));
mGlide.clear(((PostMaterial3CardBaseViewHolder) holder).iconGifImageView);
((PostMaterial3CardBaseViewHolder) holder).titleTextView.setTextColor(mPostTitleColor);
- /*if (holder instanceof PostVideoAutoplayViewHolder) {
- ((PostVideoAutoplayViewHolder) holder).mediaUri = null;
- if (((PostVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall != null && !((PostVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall.isCanceled()) {
- ((PostVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall.cancel();
- ((PostVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall = null;
- }
- ((PostVideoAutoplayViewHolder) holder).errorLoadingGfycatImageView.setVisibility(View.GONE);
- ((PostVideoAutoplayViewHolder) holder).muteButton.setVisibility(View.GONE);
- if (!((PostVideoAutoplayViewHolder) holder).isManuallyPaused) {
- ((PostVideoAutoplayViewHolder) holder).resetVolume();
- }
- mGlide.clear(((PostVideoAutoplayViewHolder) holder).previewImageView);
- ((PostVideoAutoplayViewHolder) holder).previewImageView.setVisibility(View.GONE);
- } else*/ if (holder instanceof PostMaterial3CardWithPreviewViewHolder) {
+ if (holder instanceof PostMaterial3CardBaseVideoAutoplayViewHolder) {
+ ((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).mediaUri = null;
+ if (((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall != null && !((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall.isCanceled()) {
+ ((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall.cancel();
+ ((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).fetchGfycatOrStreamableVideoCall = null;
+ }
+ ((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).errorLoadingGfycatImageView.setVisibility(View.GONE);
+ ((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).muteButton.setVisibility(View.GONE);
+ if (!((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).isManuallyPaused) {
+ ((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).resetVolume();
+ }
+ mGlide.clear(((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).previewImageView);
+ ((PostMaterial3CardBaseVideoAutoplayViewHolder) holder).previewImageView.setVisibility(View.GONE);
+ } else if (holder instanceof PostMaterial3CardWithPreviewViewHolder) {
mGlide.clear(((PostMaterial3CardWithPreviewViewHolder) holder).binding.imageViewItemPostCard3WithPreview);
((PostMaterial3CardWithPreviewViewHolder) holder).binding.imageViewItemPostCard3WithPreview.setVisibility(View.GONE);
((PostMaterial3CardWithPreviewViewHolder) holder).binding.imageWrapperRelativeLayoutItemPostCard3WithPreview.setVisibility(View.GONE);