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) {