6.5.4礼物冠名
This commit is contained in:
parent
55cbd0ff5b
commit
96daf73a5c
@ -462,13 +462,13 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
goldText.setText(coinModel.getGold());
|
goldText.setText(coinModel.getGold());
|
||||||
diamondText.setText(coinModel.getCoin());
|
diamondText.setText(coinModel.getCoin());
|
||||||
lvStr.setText("Lv." + coinModel.getUserLevel());
|
lvStr.setText("Lv." + coinModel.getUserLevel());
|
||||||
int nextLeve = Integer.parseInt(coinModel.getUserLevel());
|
int nextLeve = Integer.parseInt(coinModel.getUserNextLevelRewards());
|
||||||
int maxLeve = Integer.parseInt(coinModel.getUserLevelMax());
|
int maxLeve = Integer.parseInt(coinModel.getUserLevelMax());
|
||||||
findViewById(R.id.red_point).setVisibility((!TextUtils.isEmpty(coinModel.getUsersPackRedDot())) &&
|
findViewById(R.id.red_point).setVisibility((!TextUtils.isEmpty(coinModel.getUsersPackRedDot())) &&
|
||||||
TextUtils.equals(coinModel.getUsersPackRedDot(), "1") ? View.VISIBLE : View.GONE);
|
TextUtils.equals(coinModel.getUsersPackRedDot(), "1") ? View.VISIBLE : View.GONE);
|
||||||
if (maxLeve > nextLeve) {
|
if (maxLeve > nextLeve) {
|
||||||
String leveNext = String.valueOf(nextLeve + 1);
|
String leveNext = String.valueOf(nextLeve);
|
||||||
String userNextLevel = coinModel.getUserNextLevelRewards();
|
String userNextLevel = coinModel.getUserLevelUpgrades();
|
||||||
String hint = String.format(getString(R.string.leveling_points),
|
String hint = String.format(getString(R.string.leveling_points),
|
||||||
userNextLevel, leveNext);
|
userNextLevel, leveNext);
|
||||||
int leveNextIndexOf = hint.indexOf(leveNext);
|
int leveNextIndexOf = hint.indexOf(leveNext);
|
||||||
|
Loading…
Reference in New Issue
Block a user