From 54cf21092cbfda16ae3e8e644a6b98677e2d5119 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Tue, 15 Oct 2024 17:03:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=BF=9B=E8=A1=8C=E6=99=BA=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 236c622cd..d08350b45 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -3471,6 +3471,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } } initWishListData(wishlistBean); + }else { + stopPart2Flipper(wishFlipperRoot); } } catch (Exception e) { e.printStackTrace(); @@ -3518,7 +3520,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis * @param view 要从翻页器中移除的视图 */ private void stopPart2Flipper(View view) { - if (view == null) return; + if (view == null || newPart2Flipper==null) return; // 获取翻页器中当前的子视图数量,以判断是否满足停止翻页的条件 newPart2Flipper.getChildCount();