From 56ac5ad6d635aac3e6dfc378c23474924626d32c Mon Sep 17 00:00:00 2001 From: Sergei Kozelko Date: Fri, 9 Dec 2022 15:40:21 +0800 Subject: Refactor onFetchMoreCommentFailed callback (#1263) Unified branches, extracted repeatedly used expressions. Fortunately both branches had the same logic, except for placeholder position hint calculation. --- .../adapters/CommentsRecyclerViewAdapter.java | 70 ++++++++++------------ 1 file changed, 33 insertions(+), 37 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java index a9a67f10..75ddc811 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java @@ -736,44 +736,28 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter