add[修復BUG]
This commit is contained in:
parent
3318fa761c
commit
9fa4924278
@ -230,7 +230,7 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
if ((int) mPrankBtn.getTag() == 0) {
|
||||
setPrankConfig();
|
||||
setPrankConfig(false);
|
||||
} else {
|
||||
setGiftBean(recyclerAdapter.getList(),"0");
|
||||
}
|
||||
@ -241,7 +241,7 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
public void onViewClicks() {
|
||||
if ((int) mPrankBtn.getTag() == 0) {
|
||||
clearPrankConfig();
|
||||
setPrankConfig();
|
||||
setPrankConfig(true);
|
||||
} else {
|
||||
giftSwitch1Btn.setTag("false");
|
||||
giftSwitch1Btn.setImageResource(R.mipmap.special_icon_off);
|
||||
@ -304,7 +304,7 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
mBtnAddGift.setVisibility(View.VISIBLE);
|
||||
mGiftNotDate.setVisibility(View.VISIBLE);
|
||||
recyclerAdapter.setViewType(LivePrankRecyclerAdapter.TYPE_GIFT);
|
||||
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_gift_set);
|
||||
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_turntable_save);
|
||||
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
mPrankBtn.setText("添加禮物");
|
||||
@ -531,7 +531,8 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
setDate(bean);
|
||||
}
|
||||
|
||||
private void setPrankConfig() {
|
||||
private void setPrankConfig(boolean isClear) {
|
||||
if(!isClear){
|
||||
if (StringUtil.isEmpty(bean.getTurntable1(), bean.getTurntable2(), bean.getTurntable3(), bean.getTurntable4(), bean.getTurntable5(), bean.getTurntable6())) {
|
||||
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
@ -541,6 +542,7 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
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
|
||||
public void onSuccess(Object data) {
|
||||
|
@ -430,6 +430,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
private LinearLayout prank_top_layout;
|
||||
private ImageView prank_group_top_icon;
|
||||
|
||||
private int mPrankType;
|
||||
|
||||
private pl.droidsonroids.gif.GifDrawable mGifDrawable;
|
||||
|
||||
private static boolean isSw;
|
||||
@ -1721,7 +1723,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}else{
|
||||
prankAdapter.showAnView(prankAndComboList,prankAnisShow);
|
||||
prank_group_turntable.setText(WordUtil.isNewZh()?"待完成整蠱":"To do");
|
||||
prank_group_title.setText(WordUtil.isNewZh()?"待完成整蠱":"To do");
|
||||
prank_group_title.setText(WordUtil.isNewZh()?"整蠱進度":"To do");
|
||||
}
|
||||
});
|
||||
|
||||
@ -1871,6 +1873,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
//设置整蛊礼物数据
|
||||
private void setPrankList(int status,int mPrankType,int prankTurntableStatus){
|
||||
this.mPrankType =mPrankType;
|
||||
// LogUtils.e("yqw=====>显示转盘icon:是否显示:"+(prankTurntableStatus == 1)+",是否在倒计时"+(lt_trickery.getVisibility() == View.VISIBLE));
|
||||
if (prankTurntableStatus == 1 && lt_trickery.getVisibility() == View.GONE){
|
||||
if(CommonAppConfig.getInstance().getUid().equals(mLiveUid)){
|
||||
@ -1898,6 +1901,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
prank_top_layout.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
if(mPrankType!=1){
|
||||
return;
|
||||
}
|
||||
prank_group.setVisibility(View.GONE);
|
||||
prank_small_icon.setVisibility(View.VISIBLE);
|
||||
switchGifDrawable(!completedList.isEmpty());
|
||||
|
@ -269,7 +269,7 @@
|
||||
android:layout_height="26dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="11dp"
|
||||
android:text="立即前往"
|
||||
android:text="@string/prank_im_immediately_go"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/prank_msg_goto"
|
||||
|
@ -145,4 +145,5 @@
|
||||
<string name="live_prank_gift_dialog_number_btn">+ Set other quantity (up to 9999)</string>
|
||||
<string name="alive_prank_gift_dialog_explain">Trick instructions</string>
|
||||
<string name="prank_open_live_msg">Entertainment Tricky has been newly upgraded. Go and set up Tricky content to add more fun to the live broadcast room!</string>
|
||||
<string name="prank_im_immediately_go">Go now</string>
|
||||
</resources>
|
@ -142,4 +142,5 @@
|
||||
<string name="combo_vote_more">連擊最多優先</string>
|
||||
<string name="alive_prank_gift_dialog_explain">整蠱說明</string>
|
||||
<string name="prank_open_live_msg">娛樂整蠱全新升級,快去設置整蠱内容,給直播間增加更多趣味吧!</string>
|
||||
<string name="prank_im_immediately_go">立即前往</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user