From efc20c644ae1607b1ced25115659ea5d84df739a Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 16 Dec 2022 15:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E9=95=BF=E6=9C=9F=E4=B8=8D=E5=8A=A8=E4=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E6=BB=9A=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/adapter/LiveChatAdapter.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java index 3f9556029..6a4b9e1ba 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java @@ -129,7 +129,6 @@ public class LiveChatAdapter extends RecyclerView.Adapter { super.onScrolled(recyclerView, dx, dy); if(isSlideToBottom(recyclerView))return; mRecyclerViewScrolledDy = dy; - Log.i(TAG, "onScrolled: dx = " + dx + ", dy = " + dy); } }); } @@ -390,14 +389,6 @@ public class LiveChatAdapter extends RecyclerView.Adapter { mList.remove(0); } mList.add(bean); - int sum = (mRecyclerView.computeVerticalScrollExtent() + mRecyclerView.computeVerticalScrollOffset()); - Log.i(TAG, "Extent=" + mRecyclerView.computeVerticalScrollExtent() + - "|Offset=" + mRecyclerView.computeVerticalScrollOffset() + - "|sum=" + sum + - "|Range=" + mRecyclerView.computeVerticalScrollRange() + - "|content=" + bean.getContent() + - ((sum >= mRecyclerView.computeVerticalScrollRange()) ? "" : "|停止滑动") - ); if (isSlideToBottom(mRecyclerView) || mRecyclerViewScrolledDy == 0) { scrollToBottom(mRecyclerView); } else {