From 7d68640200b2161d4fee866cfd620f2d0790a243 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 31 Oct 2024 16:59:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5poyo=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#a40ba0ce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/common/custom/CommonRefreshView.java | 4 +++- .../main/java/com/yunbao/main/views/MainHomeViewHolder2.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/custom/CommonRefreshView.java b/common/src/main/java/com/yunbao/common/custom/CommonRefreshView.java index 4da3fbca8..499fca302 100644 --- a/common/src/main/java/com/yunbao/common/custom/CommonRefreshView.java +++ b/common/src/main/java/com/yunbao/common/custom/CommonRefreshView.java @@ -411,7 +411,9 @@ public class CommonRefreshView extends FrameLayout implements View.OnClickListen refresh(); } } - + public RecyclerView getRefreshView() { + return mRecyclerView; + } public interface DataHelperNew { void loadData(int p); diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder2.java b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder2.java index 297585b55..71fe0c5de 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder2.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder2.java @@ -245,6 +245,7 @@ public class MainHomeViewHolder2 extends AbsMainHomeChildViewHolder implements O if (!canClick()) { return; } + mRefreshView.getRefreshView().scrollToPosition(0); mAdapter.clearData(); select = bean.getId(); boolean flag = false;