Merge remote-tracking branch 'origin/dev_6.6.4_战令' into dev_6.6.4_战令
This commit is contained in:
commit
8a7b65955c
@ -1823,7 +1823,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
* 重置数据
|
||||
*/
|
||||
public void resetView() {
|
||||
contactMsgPage = -1;
|
||||
svgaImageViewHashMap.clear();
|
||||
pa_pao_layout.removeAllViews();
|
||||
timeHandler.removeCallbacks(timeRunnable);
|
||||
@ -4131,7 +4130,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
|
||||
public void clearData() {
|
||||
contactMsgPage = -1;
|
||||
svgaImageViewHashMap.clear();
|
||||
pa_pao_layout.removeAllViews();
|
||||
timeHandler.removeCallbacks(timeRunnable);
|
||||
@ -5535,7 +5533,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
|
||||
public void initTopBanner() {
|
||||
contactMsgPage = 1;
|
||||
checkNewLetter();
|
||||
if (mTopBannerList == null) {
|
||||
mTopBannerList = new ArrayList<>();
|
||||
@ -5737,11 +5734,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
});
|
||||
}
|
||||
|
||||
private int contactMsgPage = 1;
|
||||
|
||||
private synchronized void checkNewLetter() {
|
||||
if (contactMsgPage > 0) {
|
||||
LiveNetManager.get(mContext).getContactMsg(contactMsgPage, new com.yunbao.common.http.base.HttpCallback<List<LiveUserMailBoxModel>>() {
|
||||
|
||||
LiveNetManager.get(mContext).getContactMsg(1, new com.yunbao.common.http.base.HttpCallback<List<LiveUserMailBoxModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<LiveUserMailBoxModel> data) {
|
||||
if (data.size() > 0 && data != null) {
|
||||
@ -5751,11 +5747,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
return;
|
||||
}
|
||||
}
|
||||
contactMsgPage = contactMsgPage + 1;
|
||||
checkNewLetter();
|
||||
} else {
|
||||
((LiveAudienceActivity) mContext).showMsgRed(-1);
|
||||
contactMsgPage = 1;
|
||||
}
|
||||
|
||||
|
||||
@ -5763,10 +5756,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
contactMsgPage = 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user