多人PK热度加成问题,主播,用户
This commit is contained in:
parent
046adc9340
commit
0726c5dc1c
@ -52,7 +52,6 @@ import com.yunbao.common.bean.SlideInfoModel;
|
|||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.dialog.EffectsSettingsDialog;
|
import com.yunbao.common.dialog.EffectsSettingsDialog;
|
||||||
import com.yunbao.common.dialog.FloatSettingsDialog;
|
import com.yunbao.common.dialog.FloatSettingsDialog;
|
||||||
import com.yunbao.common.dialog.HintDialog;
|
|
||||||
import com.yunbao.common.dialog.LiveChargeDialogFragment;
|
import com.yunbao.common.dialog.LiveChargeDialogFragment;
|
||||||
import com.yunbao.common.dialog.SlideSettingsDialog;
|
import com.yunbao.common.dialog.SlideSettingsDialog;
|
||||||
import com.yunbao.common.dialog.YoursystemisolderDialog;
|
import com.yunbao.common.dialog.YoursystemisolderDialog;
|
||||||
@ -1260,6 +1259,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
case SOCKET_LIVE_DRPK_SET_PK_END_VIEW:
|
case SOCKET_LIVE_DRPK_SET_PK_END_VIEW:
|
||||||
if (manager.getmLivePlayViewHolder() != null) {
|
if (manager.getmLivePlayViewHolder() != null) {
|
||||||
manager.getmLivePlayViewHolder().setPkEndview();
|
manager.getmLivePlayViewHolder().setPkEndview();
|
||||||
|
manager.setPkStatus(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (manager != null) {
|
if (manager != null) {
|
||||||
|
@ -1566,11 +1566,17 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
if (mLiveRyLinkMicPkPresenter != null) {
|
if (mLiveRyLinkMicPkPresenter != null) {
|
||||||
mLiveRyLinkMicPkPresenter.leaveDRRoom();
|
mLiveRyLinkMicPkPresenter.leaveDRRoom();
|
||||||
}
|
}
|
||||||
|
if (mLiveRoomViewHolder != null) {
|
||||||
|
mLiveRoomViewHolder.hotAddVisibility(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case LEAVE_PK_SCORE:
|
case LEAVE_PK_SCORE:
|
||||||
if (mLiveRyLinkMicPkPresenter != null) {
|
if (mLiveRyLinkMicPkPresenter != null) {
|
||||||
mLiveRyLinkMicPkPresenter.upDataPkScore(event.getPkScores(), event.getUid(), event.getTime());
|
mLiveRyLinkMicPkPresenter.upDataPkScore(event.getPkScores(), event.getUid(), event.getTime());
|
||||||
}
|
}
|
||||||
|
if (mLiveRoomViewHolder != null) {
|
||||||
|
mLiveRoomViewHolder.hotAddVisibility(true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case PK_TIME_COUNT:
|
case PK_TIME_COUNT:
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
|
@ -462,7 +462,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean visibility =false;
|
private static boolean visibility = false;
|
||||||
|
|
||||||
public void hotAddVisibility(boolean visibility) {
|
public void hotAddVisibility(boolean visibility) {
|
||||||
this.visibility = visibility;
|
this.visibility = visibility;
|
||||||
@ -472,6 +472,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
public void endDRGif() {
|
public void endDRGif() {
|
||||||
if (dr_pk_end_gif.getVisibility() == View.GONE) {
|
if (dr_pk_end_gif.getVisibility() == View.GONE) {
|
||||||
dr_pk_end_gif.setVisibility(View.VISIBLE);
|
dr_pk_end_gif.setVisibility(View.VISIBLE);
|
||||||
|
visibility = false;
|
||||||
RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置
|
RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置
|
||||||
Glide.with(mContext).asGif()
|
Glide.with(mContext).asGif()
|
||||||
.apply(options)//应用配置
|
.apply(options)//应用配置
|
||||||
@ -1220,6 +1221,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
*/
|
*/
|
||||||
public void resetView() {
|
public void resetView() {
|
||||||
resetViewGone();
|
resetViewGone();
|
||||||
|
visibility = false;
|
||||||
mBannerList1.clear();
|
mBannerList1.clear();
|
||||||
mBannerList2.clear();
|
mBannerList2.clear();
|
||||||
mBannerList3.clear();
|
mBannerList3.clear();
|
||||||
@ -3163,7 +3165,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (code == 0 && info.length > 0) {
|
if (code == 0 && info.length > 0) {
|
||||||
if ("1".equals(info[0])) {
|
if ("1".equals(info[0]) && !visibility) {
|
||||||
ft_hot_add.setVisibility(View.VISIBLE);
|
ft_hot_add.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
ft_hot_add.setVisibility(View.GONE);
|
ft_hot_add.setVisibility(View.GONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user