From 7839c1cef023e60fc702e4cd2ec1f063ab7db3ea Mon Sep 17 00:00:00 2001 From: scria1000 <91804886+scria1000@users.noreply.github.com> Date: Wed, 25 Jan 2023 18:31:24 +0000 Subject: fix misdeletion (#1343) --- .../infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java | 4 ++-- .../infinityforreddit/adapters/PostDetailRecyclerViewAdapter.java | 2 +- .../infinityforreddit/adapters/PostRecyclerViewAdapter.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'app/src/main/java/ml') 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 22a070c9..6115195f 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java @@ -2919,7 +2919,7 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter= mStartAutoplayVisibleAreaOffset; + return canPlayVideo && mediaUri != null && ToroUtil.visibleAreaOffset(this, itemView.getParent()) >= mStartAutoplayVisibleAreaOffset; } @Override @@ -4628,7 +4628,7 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter= mStartAutoplayVisibleAreaOffset; + return canPlayVideo && mediaUri != null && ToroUtil.visibleAreaOffset(this, itemView.getParent()) >= mStartAutoplayVisibleAreaOffset; } @Override diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostDetailRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostDetailRecyclerViewAdapter.java index 62974d8f..799c13a7 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostDetailRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostDetailRecyclerViewAdapter.java @@ -1820,7 +1820,7 @@ public class PostDetailRecyclerViewAdapter extends RecyclerView.Adapter= mStartAutoplayVisibleAreaOffset; + return canPlayVideo && mediaUri != null && ToroUtil.visibleAreaOffset(this, itemView.getParent()) >= mStartAutoplayVisibleAreaOffset; } @Override 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 74ad401c..97a0f777 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -3054,7 +3054,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter= mStartAutoplayVisibleAreaOffset; + return canPlayVideo && mediaUri != null && ToroUtil.visibleAreaOffset(this, itemView.getParent()) >= mStartAutoplayVisibleAreaOffset; } @Override @@ -4830,7 +4830,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter= mStartAutoplayVisibleAreaOffset; + return canPlayVideo && mediaUri != null && ToroUtil.visibleAreaOffset(this, itemView.getParent()) >= mStartAutoplayVisibleAreaOffset; } @Override -- cgit v1.2.3