add[修復BUG]
This commit is contained in:
parent
35c83a255a
commit
a3228f48c2
@ -772,13 +772,14 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL
|
|||||||
pr = new pkRunnable(pkUid, pkhead, pkname, isLadders);
|
pr = new pkRunnable(pkUid, pkhead, pkname, isLadders);
|
||||||
mHandler.postDelayed(pr, 4000);//3秒后执行Runnable中的run方法
|
mHandler.postDelayed(pr, 4000);//3秒后执行Runnable中的run方法
|
||||||
mLiveRoomViewHolder.initAnchorSay();
|
mLiveRoomViewHolder.initAnchorSay();
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mLiveRyLinkMicPkPresenter != null && mLiveRoomViewHolder != null) {
|
if (mLiveRyLinkMicPkPresenter != null && mLiveRoomViewHolder != null) {
|
||||||
mLiveRyLinkMicPkPresenter.onLinkMicPkStart(pkUid, 1);
|
mLiveRyLinkMicPkPresenter.onLinkMicPkStart(pkUid, 1);
|
||||||
pr = new pkRunnable(pkUid, pkhead, pkname, isLadders);
|
pr = new pkRunnable(pkUid, pkhead, pkname, isLadders);
|
||||||
mHandler.postDelayed(pr, 4000);//3秒后执行Runnable中的run方法
|
mHandler.postDelayed(pr, 4000);//3秒后执行Runnable中的run方法
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,6 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
mContainerWrap = (ViewGroup) findViewById(R.id.container_wrap);
|
mContainerWrap = (ViewGroup) findViewById(R.id.container_wrap);
|
||||||
mContainer = (ViewGroup) findViewById(R.id.container);
|
mContainer = (ViewGroup) findViewById(R.id.container);
|
||||||
mLiveRyLinkMicPkPresenter = new LiveRyLinkMicPkPresenter(mContext, mLivePushViewHolder, true, mContainer);
|
mLiveRyLinkMicPkPresenter = new LiveRyLinkMicPkPresenter(mContext, mLivePushViewHolder, true, mContainer);
|
||||||
|
|
||||||
RandomPkManager.getInstance().addOnRandomPkTimer(onRandomPkTimer);
|
RandomPkManager.getInstance().addOnRandomPkTimer(onRandomPkTimer);
|
||||||
|
|
||||||
//添加开播前设置控件
|
//添加开播前设置控件
|
||||||
@ -814,6 +813,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
mLiveRoomViewHolder.initAnchorSay();
|
mLiveRoomViewHolder.initAnchorSay();
|
||||||
mLiveRoomViewHolder.setGiftWall(obj.getString("gift_wall_lighten_number"), obj.getString("gift_wall_lighten_total"));
|
mLiveRoomViewHolder.setGiftWall(obj.getString("gift_wall_lighten_number"), obj.getString("gift_wall_lighten_total"));
|
||||||
}
|
}
|
||||||
|
mLiveRyLinkMicPkPresenter.setmLiveRoomViewHolder(mLiveRoomViewHolder);
|
||||||
if (mLiveAnchorViewHolder == null) {
|
if (mLiveAnchorViewHolder == null) {
|
||||||
mLiveAnchorViewHolder = new LiveRyAnchorViewHolder(mContext, mContainer);
|
mLiveAnchorViewHolder = new LiveRyAnchorViewHolder(mContext, mContainer);
|
||||||
mLiveAnchorViewHolder.setLiveBean(mLiveBean);
|
mLiveAnchorViewHolder.setLiveBean(mLiveBean);
|
||||||
|
@ -879,6 +879,7 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|||||||
mLiveRoomViewHolder.initPrankProgress();
|
mLiveRoomViewHolder.initPrankProgress();
|
||||||
mLiveRoomViewHolder.sendMsgPrank();
|
mLiveRoomViewHolder.sendMsgPrank();
|
||||||
}
|
}
|
||||||
|
mLiveSwLinkMicPkPresenter.setmLiveRoomViewHolder(mLiveRoomViewHolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -146,31 +146,13 @@ public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
|||||||
if (code == 0 && info.length > 0) {
|
if (code == 0 && info.length > 0) {
|
||||||
JSONObject obj = JSON.parseObject(info[0]);
|
JSONObject obj = JSON.parseObject(info[0]);
|
||||||
if (obj != null) {
|
if (obj != null) {
|
||||||
if (TextUtils.equals(obj.getString("ispk"), "0")) {//自己不在PK,可以发起邀请
|
if(mDrPkNum!=-1){
|
||||||
|
|
||||||
LiveHttpUtil.getMicList(liveUid, 0, new com.yunbao.common.http.HttpCallback() {
|
LiveHttpUtil.getMicList(liveUid, 0, new com.yunbao.common.http.HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
System.out.println("code = " + code + ", msg = " + msg + ", info = " + Arrays.deepToString(info));
|
System.out.println("code = " + code + ", msg = " + msg + ", info = " + Arrays.deepToString(info));
|
||||||
//非0认为未开通连麦权限
|
//非0认为未开通连麦权限
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
if (mDrPkNum == -1) {
|
|
||||||
if (WordUtil.isNewZh()) {
|
|
||||||
ToastUtil.show("邀请 " + bean.getUserNiceName() + " 发送成功");
|
|
||||||
} else {
|
|
||||||
ToastUtil.show("invite " + bean.getUserNiceName() + " successful");
|
|
||||||
}
|
|
||||||
mOnItemClickListener.onItemClick(bean, -1);
|
|
||||||
if(mContext instanceof LiveSwAnchorActivity){
|
|
||||||
((LiveSwAnchorActivity) mContext).linkMicAnchorApply(bean.getId(), bean.getId(),
|
|
||||||
false);
|
|
||||||
}else{
|
|
||||||
((LiveRyAnchorActivity) mContext).linkMicAnchorApply(bean.getId(), bean.getId(),
|
|
||||||
((LiveRyAnchorActivity) mContext).buildLinkMicJSON().toString()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (mDrPkNum <= 0) {
|
if (mDrPkNum <= 0) {
|
||||||
if (WordUtil.isNewZh()) {
|
if (WordUtil.isNewZh()) {
|
||||||
ToastUtil.show("多人次數已用完");
|
ToastUtil.show("多人次數已用完");
|
||||||
@ -202,6 +184,39 @@ public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
if (TextUtils.equals(obj.getString("ispk"), "0")) {//自己不在PK,可以发起邀请
|
||||||
|
LiveHttpUtil.getMicList(liveUid, 0, new com.yunbao.common.http.HttpCallback() {
|
||||||
|
@Override
|
||||||
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
System.out.println("code = " + code + ", msg = " + msg + ", info = " + Arrays.deepToString(info));
|
||||||
|
//非0认为未开通连麦权限
|
||||||
|
if (code != 0) {
|
||||||
|
if (mDrPkNum == -1) {
|
||||||
|
if (WordUtil.isNewZh()) {
|
||||||
|
ToastUtil.show("邀请 " + bean.getUserNiceName() + " 发送成功");
|
||||||
|
} else {
|
||||||
|
ToastUtil.show("invite " + bean.getUserNiceName() + " successful");
|
||||||
|
}
|
||||||
|
mOnItemClickListener.onItemClick(bean, -1);
|
||||||
|
if(mContext instanceof LiveSwAnchorActivity){
|
||||||
|
((LiveSwAnchorActivity) mContext).linkMicAnchorApply(bean.getId(), bean.getId(),
|
||||||
|
false);
|
||||||
|
}else{
|
||||||
|
((LiveRyAnchorActivity) mContext).linkMicAnchorApply(bean.getId(), bean.getId(),
|
||||||
|
((LiveRyAnchorActivity) mContext).buildLinkMicJSON().toString()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (WordUtil.isNewZh()) {
|
||||||
|
ToastUtil.show("請先關閉語音連麥");
|
||||||
|
} else {
|
||||||
|
ToastUtil.show("Please disable the voice connection first");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}else{
|
}else{
|
||||||
if (WordUtil.isNewZh()) {
|
if (WordUtil.isNewZh()) {
|
||||||
ToastUtil.show("請先關閉PK");
|
ToastUtil.show("請先關閉PK");
|
||||||
@ -212,6 +227,7 @@ public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -173,11 +173,9 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
if (giftBeans.size() < 6) {
|
if (giftBeans.size() < 6) {
|
||||||
mBtnAddGift.setVisibility(View.VISIBLE);
|
mBtnAddGift.setVisibility(View.VISIBLE);
|
||||||
mGiftNotDate.setVisibility(View.VISIBLE);
|
mGiftNotDate.setVisibility(View.VISIBLE);
|
||||||
mPrankBtn.setVisibility(View.VISIBLE);
|
|
||||||
} else {
|
} else {
|
||||||
mBtnAddGift.setVisibility(View.GONE);
|
mBtnAddGift.setVisibility(View.GONE);
|
||||||
mGiftNotDate.setVisibility(View.GONE);
|
mGiftNotDate.setVisibility(View.GONE);
|
||||||
mPrankBtn.setVisibility(View.GONE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -248,7 +246,6 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
giftBeans = new ArrayList<>();
|
giftBeans = new ArrayList<>();
|
||||||
recyclerAdapter.setList(giftBeans);
|
recyclerAdapter.setList(giftBeans);
|
||||||
recyclerAdapter.notifyDataSetChanged();
|
recyclerAdapter.notifyDataSetChanged();
|
||||||
mPrankBtn.setVisibility(View.VISIBLE);
|
|
||||||
mBtnAddGift.setVisibility(View.VISIBLE);
|
mBtnAddGift.setVisibility(View.VISIBLE);
|
||||||
mGiftNotDate.setVisibility(View.VISIBLE);
|
mGiftNotDate.setVisibility(View.VISIBLE);
|
||||||
setGiftBean(recyclerAdapter.getList(),"1");
|
setGiftBean(recyclerAdapter.getList(),"1");
|
||||||
@ -287,7 +284,6 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
mBtnAddGift.setVisibility(View.GONE);
|
mBtnAddGift.setVisibility(View.GONE);
|
||||||
mGiftNotDate.setVisibility(View.GONE);
|
mGiftNotDate.setVisibility(View.GONE);
|
||||||
recyclerAdapter.setViewType(TYPE_TURNTABLE);
|
recyclerAdapter.setViewType(TYPE_TURNTABLE);
|
||||||
mPrankBtn.setVisibility(View.VISIBLE);
|
|
||||||
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_turntable_save);
|
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_turntable_save);
|
||||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||||
mPrankBtn.setText("發送圖標");
|
mPrankBtn.setText("發送圖標");
|
||||||
@ -298,6 +294,7 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
mPrankBtn.setTag(0);
|
mPrankBtn.setTag(0);
|
||||||
recyclerAdapter.clearList();
|
recyclerAdapter.clearList();
|
||||||
initTurntableData();
|
initTurntableData();
|
||||||
|
mPrankBtn.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
mTurntableConfigLayout.setVisibility(View.GONE);
|
mTurntableConfigLayout.setVisibility(View.GONE);
|
||||||
mGiftConfigLayout.setVisibility(View.VISIBLE);
|
mGiftConfigLayout.setVisibility(View.VISIBLE);
|
||||||
@ -306,14 +303,15 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
recyclerAdapter.setViewType(LivePrankRecyclerAdapter.TYPE_GIFT);
|
recyclerAdapter.setViewType(LivePrankRecyclerAdapter.TYPE_GIFT);
|
||||||
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_turntable_save);
|
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_turntable_save);
|
||||||
|
|
||||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
/*if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||||
mPrankBtn.setText("添加禮物");
|
mPrankBtn.setText("添加禮物");
|
||||||
} else {
|
} else {
|
||||||
mPrankBtn.setText("Add gift");
|
mPrankBtn.setText("Add gift");
|
||||||
}
|
}*/
|
||||||
mPrankBtn.setTag(1);
|
mPrankBtn.setTag(1);
|
||||||
recyclerAdapter.clearList();
|
recyclerAdapter.clearList();
|
||||||
initGiftData();
|
initGiftData();
|
||||||
|
mPrankBtn.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,11 +339,9 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
if (giftBeans.size() < 6) {
|
if (giftBeans.size() < 6) {
|
||||||
mBtnAddGift.setVisibility(View.VISIBLE);
|
mBtnAddGift.setVisibility(View.VISIBLE);
|
||||||
mGiftNotDate.setVisibility(View.VISIBLE);
|
mGiftNotDate.setVisibility(View.VISIBLE);
|
||||||
mPrankBtn.setVisibility(View.VISIBLE);
|
|
||||||
} else {
|
} else {
|
||||||
mBtnAddGift.setVisibility(View.GONE);
|
mBtnAddGift.setVisibility(View.GONE);
|
||||||
mGiftNotDate.setVisibility(View.GONE);
|
mGiftNotDate.setVisibility(View.GONE);
|
||||||
mPrankBtn.setVisibility(View.GONE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -419,11 +415,13 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(PrankHttpTurntableBean data) {
|
public void onSuccess(PrankHttpTurntableBean data) {
|
||||||
initGiftData();
|
initGiftData();
|
||||||
|
if(!is_cleared.equals("1")){
|
||||||
if (WordUtil.isNewZh()) {
|
if (WordUtil.isNewZh()) {
|
||||||
ToastUtil.show("保存成功!");
|
ToastUtil.show("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
ToastUtil.show("successful");
|
ToastUtil.show("successful");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//通知主播刷新整蛊信息、
|
//通知主播刷新整蛊信息、
|
||||||
if(onPrankResultListener!=null){
|
if(onPrankResultListener!=null){
|
||||||
onPrankResultListener.OpenAndCloseListener();
|
onPrankResultListener.OpenAndCloseListener();
|
||||||
@ -462,7 +460,6 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
} else {
|
} else {
|
||||||
mBtnAddGift.setVisibility(View.GONE);
|
mBtnAddGift.setVisibility(View.GONE);
|
||||||
mGiftNotDate.setVisibility(View.GONE);
|
mGiftNotDate.setVisibility(View.GONE);
|
||||||
mPrankBtn.setVisibility(View.GONE);
|
|
||||||
}
|
}
|
||||||
mPrankRecyclerView.setVisibility(View.VISIBLE);
|
mPrankRecyclerView.setVisibility(View.VISIBLE);
|
||||||
recyclerAdapter.setViewType(LivePrankRecyclerAdapter.TYPE_GIFT);
|
recyclerAdapter.setViewType(LivePrankRecyclerAdapter.TYPE_GIFT);
|
||||||
@ -543,16 +540,25 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(isClear){
|
||||||
|
bean.setTurntable1("");
|
||||||
|
bean.setTurntable2("");
|
||||||
|
bean.setTurntable3("");
|
||||||
|
bean.setTurntable4("");
|
||||||
|
bean.setTurntable5("");
|
||||||
|
bean.setTurntable6("");
|
||||||
|
}
|
||||||
LiveNetManager.get(mContext).setAnchorPrankTurntable(mLiveUid, bean.getCoin() + "", bean.getTurntable1(), bean.getTurntable2(), bean.getTurntable3(), bean.getTurntable4(), bean.getTurntable5(), bean.getTurntable6(), bean.getStatus() + "", new HttpCallback<Object>() {
|
LiveNetManager.get(mContext).setAnchorPrankTurntable(mLiveUid, bean.getCoin() + "", bean.getTurntable1(), bean.getTurntable2(), bean.getTurntable3(), bean.getTurntable4(), bean.getTurntable5(), bean.getTurntable6(), bean.getStatus() + "", new HttpCallback<Object>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Object data) {
|
public void onSuccess(Object data) {
|
||||||
|
if(!isClear){
|
||||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||||
ToastUtil.show("保存成功");
|
ToastUtil.show("保存成功");
|
||||||
} else {
|
} else {
|
||||||
ToastUtil.show("Save success");
|
ToastUtil.show("Save success");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
|
@ -11,6 +11,7 @@ import com.yunbao.common.http.LiveHttpUtil;
|
|||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.AppManager;
|
import com.yunbao.common.utils.AppManager;
|
||||||
|
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||||
|
|
||||||
public abstract class AbsLinkMicPkPresenter {
|
public abstract class AbsLinkMicPkPresenter {
|
||||||
private boolean isSw = false;
|
private boolean isSw = false;
|
||||||
@ -29,6 +30,7 @@ public abstract class AbsLinkMicPkPresenter {
|
|||||||
protected String mApplyNmae;//正在申请Pk的主播的名字
|
protected String mApplyNmae;//正在申请Pk的主播的名字
|
||||||
protected boolean mIsApplyDialogShow;//是否显示了申请PK的弹窗
|
protected boolean mIsApplyDialogShow;//是否显示了申请PK的弹窗
|
||||||
|
|
||||||
|
public LiveRoomViewHolder mLiveRoomViewHolder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主播与主播PK 主播收到其他主播发过来的多人PK申请的回调
|
* 主播与主播PK 主播收到其他主播发过来的多人PK申请的回调
|
||||||
@ -38,6 +40,10 @@ public abstract class AbsLinkMicPkPresenter {
|
|||||||
showDRApplyDialogTmp(u);
|
showDRApplyDialogTmp(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setmLiveRoomViewHolder(LiveRoomViewHolder mLiveRoomViewHolder) {
|
||||||
|
this.mLiveRoomViewHolder = mLiveRoomViewHolder;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主播与主播PK 主播收到其他主播发过来的PK申请的回调
|
* 主播与主播PK 主播收到其他主播发过来的PK申请的回调
|
||||||
*/
|
*/
|
||||||
|
@ -72,6 +72,7 @@ import com.yunbao.live.socket.SocketRyLinkMicPkUtil;
|
|||||||
import com.yunbao.live.socket.SocketSendBean;
|
import com.yunbao.live.socket.SocketSendBean;
|
||||||
import com.yunbao.live.views.LiveLinkMicPkViewHolder;
|
import com.yunbao.live.views.LiveLinkMicPkViewHolder;
|
||||||
import com.yunbao.live.views.LivePushRyViewHolder;
|
import com.yunbao.live.views.LivePushRyViewHolder;
|
||||||
|
import com.yunbao.live.views.LiveRoomViewHolder;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
@ -247,6 +248,10 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public LiveRyLinkMicPkPresenter(Context context, LivePushRyViewHolder linkMicViewHolder, boolean isAnchor, View root) {
|
public LiveRyLinkMicPkPresenter(Context context, LivePushRyViewHolder linkMicViewHolder, boolean isAnchor, View root) {
|
||||||
super(false);
|
super(false);
|
||||||
mContext = context;
|
mContext = context;
|
||||||
@ -1043,6 +1048,10 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//收起整蛊列表
|
||||||
|
if(mLiveRoomViewHolder!=null){
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1826,6 +1835,10 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//收起整蛊列表
|
||||||
|
if(mLiveRoomViewHolder!=null){
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -607,6 +607,10 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
dRjoinOtherRoom(u);
|
dRjoinOtherRoom(u);
|
||||||
//展示结束连麦按钮
|
//展示结束连麦按钮
|
||||||
mLiveAnchorViewHolder.showEndPkBt();
|
mLiveAnchorViewHolder.showEndPkBt();
|
||||||
|
//收起整蛊列表
|
||||||
|
if(mLiveRoomViewHolder!=null){
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -831,9 +835,15 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
|||||||
//设置多人PK 房主ROOM UID
|
//设置多人PK 房主ROOM UID
|
||||||
mLiveAnchorViewHolder.setDrpkRoomId(mApplyUid);
|
mLiveAnchorViewHolder.setDrpkRoomId(mApplyUid);
|
||||||
mLiveAnchorViewHolder.showEndPkBt();
|
mLiveAnchorViewHolder.showEndPkBt();
|
||||||
|
|
||||||
|
//收起整蛊列表
|
||||||
|
if(mLiveRoomViewHolder!=null){
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1763,6 +1763,16 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
initPrankAdapter();
|
initPrankAdapter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收起整蛊列表
|
||||||
|
*/
|
||||||
|
public void closePrankView(){
|
||||||
|
if(prank_group.getVisibility()==View.VISIBLE){
|
||||||
|
prank_group.setVisibility(View.GONE);
|
||||||
|
prank_small_icon.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void sendMsgPrank(){
|
public void sendMsgPrank(){
|
||||||
new Handler().postDelayed(new Runnable() {
|
new Handler().postDelayed(new Runnable() {
|
||||||
@ -5021,7 +5031,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
countDownTimerTrickery.cancel();
|
countDownTimerTrickery.cancel();
|
||||||
countDownTimerTrickery = null;
|
countDownTimerTrickery = null;
|
||||||
lt_trickery.setVisibility(View.GONE);
|
lt_trickery.setVisibility(View.GONE);
|
||||||
|
if(!CommonAppConfig.getInstance().getUid().equals(mLiveUid)){
|
||||||
prank_group_turntable_icon.setVisibility(View.VISIBLE);
|
prank_group_turntable_icon.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
LiveNetManager.get(mContext).endPrankTurntable(mLiveUid, new com.yunbao.common.http.base.HttpCallback<BaseModel>() {
|
LiveNetManager.get(mContext).endPrankTurntable(mLiveUid, new com.yunbao.common.http.base.HttpCallback<BaseModel>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(BaseModel data) {
|
public void onSuccess(BaseModel data) {
|
||||||
@ -5056,7 +5068,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
starTimeloud(2, time);
|
starTimeloud(2, time);
|
||||||
} else {
|
} else {
|
||||||
lt_trickery.setVisibility(View.GONE);
|
lt_trickery.setVisibility(View.GONE);
|
||||||
|
if(!CommonAppConfig.getInstance().getUid().equals(mLiveUid)){
|
||||||
prank_group_turntable_icon.setVisibility(View.VISIBLE);
|
prank_group_turntable_icon.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
timeOver();
|
timeOver();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -642,6 +642,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
//初始化整蛊进度列表
|
//初始化整蛊进度列表
|
||||||
mLiveRoomViewHolder.initPrankProgress();
|
mLiveRoomViewHolder.initPrankProgress();
|
||||||
|
|
||||||
|
|
||||||
isattention = Integer.parseInt(data.getEnterRoomInfo().getIsattention());
|
isattention = Integer.parseInt(data.getEnterRoomInfo().getIsattention());
|
||||||
if (isattention == 0) {
|
if (isattention == 0) {
|
||||||
if (countDownTimer != null) {
|
if (countDownTimer != null) {
|
||||||
@ -727,6 +728,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLivePlayViewHolder.setPkView(connection_info.getPkuid());
|
mLivePlayViewHolder.setPkView(connection_info.getPkuid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//收起整蠱列表
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
}
|
}
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
mLiveRoomViewHolder.pkHandler = false;
|
mLiveRoomViewHolder.pkHandler = false;
|
||||||
@ -777,6 +780,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLiveRoomViewHolder.initPkRank(null);
|
mLiveRoomViewHolder.initPkRank(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//收起整蠱列表
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
//多人PK
|
//多人PK
|
||||||
} else if (pkInfo != null && pkInfo.getIntValue("drpk_status") == 1) {
|
} else if (pkInfo != null && pkInfo.getIntValue("drpk_status") == 1) {
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
@ -809,6 +814,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
}
|
}
|
||||||
|
|
||||||
upDataPkScore(pkInfo.getJSONArray("userlist"), pkInfo.getIntValue("drpk_time"));
|
upDataPkScore(pkInfo.getJSONArray("userlist"), pkInfo.getIntValue("drpk_time"));
|
||||||
|
//收起整蠱列表
|
||||||
|
mLiveRoomViewHolder.closePrankView();
|
||||||
}
|
}
|
||||||
if (data.getEnterRoomInfo().getGuard() != null) {
|
if (data.getEnterRoomInfo().getGuard() != null) {
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user