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 {