6.5.4礼物冠名
This commit is contained in:
parent
5a4001c858
commit
68140c8a3a
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式、
|
//正式、
|
||||||
serverHost : "https://napi.yaoulive.com",
|
// serverHost : "https://napi.yaoulive.com",
|
||||||
// 测试
|
// 测试
|
||||||
// serverHost : "https://ceshi.yaoulive.com",
|
serverHost : "https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,10 +21,10 @@ ext {
|
|||||||
baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB",
|
baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB",
|
||||||
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
|
||||||
// true表示谷歌支付 false
|
// true表示谷歌支付 false
|
||||||
isGooglePlay : true,
|
isGooglePlay : false,
|
||||||
//是否上报异常日志
|
//是否上报异常日志
|
||||||
isUploadLog : true,
|
isUploadLog : true,
|
||||||
//是否打包成插件包模式
|
//是否打包成插件包模式
|
||||||
isPluginModel : false,
|
isPluginModel : true,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -469,10 +469,24 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
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 (!TextUtils.equals(coinModel.getUserLevel(), coinModel.getUserLevelMax())) {
|
if (!TextUtils.equals(coinModel.getUserLevel(), coinModel.getUserLevelMax())) {
|
||||||
|
try {
|
||||||
String leveNext = String.valueOf(nextLeve);
|
String leveNext = String.valueOf(nextLeve);
|
||||||
String userNextLevel = coinModel.getUserLevelUpgrades();
|
String userNextLevel = coinModel.getUserLevelUpgrades();
|
||||||
String hint = String.format(getString(R.string.leveling_points),
|
StringBuffer stringBuffer = new StringBuffer();
|
||||||
userNextLevel, leveNext);
|
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||||
|
stringBuffer.append("升級還需")
|
||||||
|
.append(userNextLevel)
|
||||||
|
.append("經驗值,升至")
|
||||||
|
.append(leveNext)
|
||||||
|
.append("即可領取獎勵");
|
||||||
|
} else {
|
||||||
|
stringBuffer.append(userNextLevel)
|
||||||
|
.append(" experience upgrade,")
|
||||||
|
.append(leveNext)
|
||||||
|
.append(" receive rewards");
|
||||||
|
}
|
||||||
|
String hint = stringBuffer.toString();
|
||||||
|
|
||||||
int leveNextIndexOf = hint.indexOf(leveNext);
|
int leveNextIndexOf = hint.indexOf(leveNext);
|
||||||
int leveNextSize = leveNext.length();
|
int leveNextSize = leveNext.length();
|
||||||
int userNextLevelIndexOf = hint.indexOf(userNextLevel);
|
int userNextLevelIndexOf = hint.indexOf(userNextLevel);
|
||||||
@ -490,6 +504,9 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
leaveHint.setText(builder);
|
leaveHint.setText(builder);
|
||||||
progressBar.setProgress(nextLeve);
|
progressBar.setProgress(nextLeve);
|
||||||
progressBar.setMax(maxLeve);
|
progressBar.setMax(maxLeve);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
String hint = getString(R.string.reach_the_top);
|
String hint = getString(R.string.reach_the_top);
|
||||||
leaveHint.setText(hint);
|
leaveHint.setText(hint);
|
||||||
|
Loading…
Reference in New Issue
Block a user