From 0a460200c550304c1d1aa9f6203ac38aba1b4aa1 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:44:44 -0400 Subject: Continue optimizing class structures in PostRecyclerViewAdapter. --- .../adapters/PostRecyclerViewAdapter.java | 202 ++++++++------------- 1 file changed, 77 insertions(+), 125 deletions(-) (limited to 'app/src/main') 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 c13ea749..3a41b87f 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -599,6 +599,9 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter= mStartAutoplayVisibleAreaOffset; } + abstract int getAdapterPosition(); + abstract Post getPost(); abstract void markPostRead(Post post, boolean changePostItemColor); @@ -3091,11 +3040,9 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter requestListener; - Post post; - - int currentPosition; PostCompactBaseViewHolder(View itemView) { super(itemView); @@ -4729,9 +4678,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter