From ae3ac93248f06e8d8d20e22a18e49fdfaa6e79b0 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 1 Dec 2022 16:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=92=AD,=E6=98=AF=E5=90=A6=E5=9C=A8?= =?UTF-8?q?=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java | 3 +-- .../java/com/yunbao/main/views/SearchResultsViewHolder.java | 2 +- 2 files changed, 2 insertions(+), 3 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 b06320ed3..e0a9e4b1f 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java @@ -417,8 +417,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter { */ public boolean isSlideToBottom(RecyclerView recyclerView) { if (recyclerView == null) return false; - if (recyclerView.computeVerticalScrollExtent() + recyclerView.computeVerticalScrollOffset() - >= recyclerView.computeVerticalScrollRange()) + if (recyclerView.computeVerticalScrollExtent() + recyclerView.computeVerticalScrollOffset() >= recyclerView.computeVerticalScrollRange()) return true; return false; } diff --git a/main/src/main/java/com/yunbao/main/views/SearchResultsViewHolder.java b/main/src/main/java/com/yunbao/main/views/SearchResultsViewHolder.java index 4b88cace8..25ac98861 100644 --- a/main/src/main/java/com/yunbao/main/views/SearchResultsViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/SearchResultsViewHolder.java @@ -95,7 +95,7 @@ public class SearchResultsViewHolder extends RecyclerView.ViewHolder { leave.setText(model.getLevelAnchor()); ImgLoader.display(itemView.getContext(), imgUrl, contribute); } - + isLive.setVisibility(model.getIslive() == 0 ? View.GONE : View.VISIBLE); } if (model.getSex() == 2) {