修复直播间滑动列表数组下标溢出BUG

This commit is contained in:
zlzw 2022-12-05 10:30:15 +08:00
parent 5f487f74bd
commit 8d8cff8d1b

View File

@ -320,6 +320,9 @@ public class LiveAudienceActivity extends LiveActivity {
private Runnable liveRunnable = new Runnable() {
@Override
public void run() {
if (itemModelList.size() <= mCurrentPage) {
mCurrentPage = 0;
}
AnchorRecommendItemModel data = itemModelList.get(mCurrentPage);
if (mCurrentPage == 0 && liveIndex) {
View rootView = manager.getRootView();