修复主播可以自己点整蛊拯救的问题
调整整蛊设置
This commit is contained in:
parent
6929276512
commit
b827f7bfa6
@ -150,4 +150,14 @@ public class StringUtil {
|
|||||||
public static boolean isEmpty(String str) {
|
public static boolean isEmpty(String str) {
|
||||||
return str == null || "".equals(str.trim()) || str.trim().length() == 0;
|
return str == null || "".equals(str.trim()) || str.trim().length() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isEmpty(String... str) {
|
||||||
|
for (String s : str) {
|
||||||
|
if (isEmpty(s)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,11 @@ public class GiftPopDialog extends PopupWindow implements ActionListener, View.O
|
|||||||
try {
|
try {
|
||||||
prangNum = Integer.parseInt(content);
|
prangNum = Integer.parseInt(content);
|
||||||
if (prangNum <= 0 ) {
|
if (prangNum <= 0 ) {
|
||||||
ToastUtil.show("數量錯誤");
|
ToastUtil.show("數量不能為0或負數");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(prangNum>999){
|
||||||
|
ToastUtil.show("數量不能大於999");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mBtnSend.setText(content);
|
mBtnSend.setText(content);
|
||||||
|
@ -25,6 +25,7 @@ import com.yunbao.common.http.live.LiveNetManager;
|
|||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
|
import com.yunbao.common.utils.StringUtil;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.adapter.LivePrankRecyclerAdapter;
|
import com.yunbao.live.adapter.LivePrankRecyclerAdapter;
|
||||||
@ -294,6 +295,10 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setPrankConfig() {
|
private void setPrankConfig() {
|
||||||
|
if(StringUtil.isEmpty(bean.getTurntable1(),bean.getTurntable2(), bean.getTurntable3(),bean.getTurntable4(),bean.getTurntable5(),bean.getTurntable6())){
|
||||||
|
ToastUtil.show("保存失败:所有转盘位置必填" );
|
||||||
|
return;
|
||||||
|
}
|
||||||
LiveNetManager.get(mContext).setAnchorPrankTurntable(
|
LiveNetManager.get(mContext).setAnchorPrankTurntable(
|
||||||
mLiveUid,
|
mLiveUid,
|
||||||
bean.getCoin() + "",
|
bean.getCoin() + "",
|
||||||
|
@ -2920,7 +2920,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void startAnchorLiveTime() {
|
public void startAnchorLiveTime() {
|
||||||
if (mLiveRoomHandler != null) {
|
if (mLiveRoomHandler != null) {
|
||||||
mLiveRoomHandler.sendEmptyMessageAtTime(LiveRoomHandler.WHAT_ANCHOR_LIVE_TIME, getNextTime(1000));
|
mLiveRoomHandler.sendEmptyMessageAtTime(LiveRoomHandler.WHAT_ANCHOR_LIVE_TIME, getNextTime(1000));
|
||||||
@ -3567,6 +3566,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
lt_trickster_salvation.setOnClickListener(new View.OnClickListener() {
|
lt_trickster_salvation.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
if (mContext instanceof LiveRyAnchorActivity) {
|
||||||
|
dialog.dismiss();
|
||||||
|
return;
|
||||||
|
}
|
||||||
hopeRankTurntable();
|
hopeRankTurntable();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user