修复直播间滑动列表数组下标溢出BUG
This commit is contained in:
parent
5f487f74bd
commit
8d8cff8d1b
@ -320,6 +320,9 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
private Runnable liveRunnable = new Runnable() {
|
private Runnable liveRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (itemModelList.size() <= mCurrentPage) {
|
||||||
|
mCurrentPage = 0;
|
||||||
|
}
|
||||||
AnchorRecommendItemModel data = itemModelList.get(mCurrentPage);
|
AnchorRecommendItemModel data = itemModelList.get(mCurrentPage);
|
||||||
if (mCurrentPage == 0 && liveIndex) {
|
if (mCurrentPage == 0 && liveIndex) {
|
||||||
View rootView = manager.getRootView();
|
View rootView = manager.getRootView();
|
||||||
|
Loading…
Reference in New Issue
Block a user