修复问题
This commit is contained in:
@@ -101,9 +101,14 @@ public class ResultRendPacketPopup extends CenterPopupView {
|
||||
new HttpCallback<List<RedPacketGiftModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<RedPacketGiftModel> data) {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
if (data.size() > 0) {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
} else {
|
||||
ToastUtil.show(R.string.no_data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -117,9 +122,14 @@ public class ResultRendPacketPopup extends CenterPopupView {
|
||||
new HttpCallback<List<RedPacketGiftModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<RedPacketGiftModel> data) {
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
if (data.size()>0){
|
||||
new XPopup.Builder(getContext())
|
||||
.asCustom(new LuckUserRedPacketPopup(getContext(), data))
|
||||
.show();
|
||||
}else {
|
||||
ToastUtil.show(R.string.no_data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -100,7 +100,7 @@ public class SendRendPacketPopup extends CenterPopupView {
|
||||
totalConsumptionOfDrill.setText(String.format(getContext().getString(R.string.total_consumption_of_drill), String.valueOf((totalInt * numberInt))));
|
||||
redEnvelopeRill.setText(String.format(getContext().getString(R.string.red_envelope_rill), s.toString()));
|
||||
} else {
|
||||
ToastUtil.show(String.format(getContext().getString(R.string.range_range_is), "200~10000"));
|
||||
ToastUtil.show(getContext().getString(R.string.amount) + String.format(getContext().getString(R.string.range_range_is), "200~10000"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -135,7 +135,7 @@ public class SendRendPacketPopup extends CenterPopupView {
|
||||
if (numberInt >= 1 && numberInt <= 100) {
|
||||
totalConsumptionOfDrill.setText(String.format(getContext().getString(R.string.total_consumption_of_drill), String.valueOf((rillInt * numberInt))));
|
||||
} else {
|
||||
ToastUtil.show(String.format(getContext().getString(R.string.range_range_is), "1~100"));
|
||||
ToastUtil.show(getContext().getString(R.string.drill) + String.format(getContext().getString(R.string.range_range_is), "1~100"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -180,12 +180,12 @@ public class SendRendPacketPopup extends CenterPopupView {
|
||||
if (totalInt >= 1 && totalInt <= 100) {
|
||||
totalTrue = true;
|
||||
} else {
|
||||
ToastUtil.show(String.format(getContext().getString(R.string.range_range_is), "1~100"));
|
||||
ToastUtil.show(getContext().getString(R.string.drill) + String.format(getContext().getString(R.string.range_range_is), "1~100"));
|
||||
}
|
||||
if (rillInt >= 200 && rillInt <= 10000) {
|
||||
rillTrue = true;
|
||||
} else {
|
||||
ToastUtil.show(String.format(getContext().getString(R.string.range_range_is), "200~10000"));
|
||||
ToastUtil.show(getContext().getString(R.string.amount) + String.format(getContext().getString(R.string.range_range_is), "200~10000"));
|
||||
}
|
||||
if (totalTrue && rillTrue) {
|
||||
LiveNetManager.get(getContext())
|
||||
|
||||
@@ -1453,11 +1453,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
redPacketQueue.setVisibility(View.VISIBLE);
|
||||
redPacketCountdown.setVisibility(View.GONE);
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append(mRedPacketModel.getRedPacketRemain() )
|
||||
stringBuffer.append(mRedPacketModel.getRedPacketCount())
|
||||
.append("/")
|
||||
.append(mRedPacketModel.getRedPacketQuantity());
|
||||
redSchedule.setText(stringBuffer.toString());
|
||||
openRedPacket.setText(String.format(mContext.getString(R.string.open_red_packet), mRedPacketModel.getRedPacketCount()+ ""));
|
||||
openRedPacket.setText(String.format(mContext.getString(R.string.open_red_packet), mRedPacketModel.getRedPacketRemain() + ""));
|
||||
}
|
||||
if (IMLoginManager.get(mContext).getUserInfo().anchorUserType() && mContext instanceof LiveRyAnchorActivity) {
|
||||
anchorTimeHandler.removeCallbacks(anchorTimeRunnable);
|
||||
|
||||
Reference in New Issue
Block a user