心愿单如果没有进行智控

This commit is contained in:
ningwenqiang 2024-10-15 17:03:43 +08:00
parent 2799991ef3
commit 54cf21092c

View File

@ -3471,6 +3471,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
} }
initWishListData(wishlistBean); initWishListData(wishlistBean);
}else {
stopPart2Flipper(wishFlipperRoot);
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
@ -3518,7 +3520,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
* @param view 要从翻页器中移除的视图 * @param view 要从翻页器中移除的视图
*/ */
private void stopPart2Flipper(View view) { private void stopPart2Flipper(View view) {
if (view == null) return; if (view == null || newPart2Flipper==null) return;
// 获取翻页器中当前的子视图数量以判断是否满足停止翻页的条件 // 获取翻页器中当前的子视图数量以判断是否满足停止翻页的条件
newPart2Flipper.getChildCount(); newPart2Flipper.getChildCount();