From 2f9e1cb327b1d58e4035b77bd903a452774ce66b Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 17 十月 2020 17:28:57 +0800 Subject: [PATCH] 广告控制完善 --- BuWanVideo/src/com/weikou/beibeivideo/ui/media/EpisodeAdapter.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/media/EpisodeAdapter.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/media/EpisodeAdapter.java index 5c7bdf8..aafc134 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/media/EpisodeAdapter.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/media/EpisodeAdapter.java @@ -14,6 +14,7 @@ import com.weikou.beibeivideo.entity.VideoInfo; import com.weikou.beibeivideo.util.DownloadUtils; import com.weikou.beibeivideo.R; +import com.weikou.beibeivideo.util.VideoUtil; /** * 鏌ョ湅鏇村鏃剁殑鍓ч泦閫傞厤鍣� @@ -33,19 +34,18 @@ @Override public int getCount() { if (mVideoInfo.getShowType() == 1) {// 缁艰壓 - if (VideoEpisodeFragment.page_varietyshow * 10 <= mVideoInfo - .getVideoDetailList().size()) { + if (VideoEpisodeFragment.page_varietyshow * 10 <= VideoUtil.videoEpisodeList.size()) { return VideoEpisodeFragment.page_varietyshow * 10; } else { - return mVideoInfo.getVideoDetailList().size(); + return VideoUtil.videoEpisodeList.size(); } } - return mVideoInfo.getVideoDetailList().size(); + return VideoUtil.videoEpisodeList.size(); } @Override public Object getItem(int position) { - return mVideoInfo.getVideoDetailList().get(position); + return VideoUtil.videoEpisodeList.get(position); } @Override -- Gitblit v1.8.0