修复
This commit is contained in:
@@ -99,7 +99,10 @@ public class SendRendPacketPopup extends CenterPopupView {
|
||||
if (numberInt >= 200 && numberInt <= 10000) {
|
||||
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()));
|
||||
rill.setTextColor(Color.WHITE);
|
||||
|
||||
} else {
|
||||
rill.setTextColor(Color.parseColor("#FD2D46"));
|
||||
ToastUtil.show(getContext().getString(R.string.amount) + String.format(getContext().getString(R.string.range_range_is), "200~10000"));
|
||||
}
|
||||
|
||||
@@ -134,7 +137,9 @@ public class SendRendPacketPopup extends CenterPopupView {
|
||||
int numberInt = Integer.parseInt(number);
|
||||
if (numberInt >= 1 && numberInt <= 100) {
|
||||
totalConsumptionOfDrill.setText(String.format(getContext().getString(R.string.total_consumption_of_drill), String.valueOf((rillInt * numberInt))));
|
||||
total.setTextColor(Color.WHITE);
|
||||
} else {
|
||||
total.setTextColor(Color.parseColor("#FD2D46"));
|
||||
ToastUtil.show(getContext().getString(R.string.lucky_red_envelope_amount) + String.format(getContext().getString(R.string.range_range_is), "1~100"));
|
||||
}
|
||||
|
||||
@@ -195,6 +200,7 @@ public class SendRendPacketPopup extends CenterPopupView {
|
||||
conditions, new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
ToastUtil.show(R.string.red_envelope_released_successfully);
|
||||
dismiss();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user