抽离部分java代码中的字符串,equals判断常量放在前面

This commit is contained in:
kehaoyuan
2017-10-14 15:52:15 +08:00
parent 4290846698
commit 52433ba347
36 changed files with 75 additions and 60 deletions

View File

@ -65,7 +65,7 @@ public class GameViewUtils {
tag.setTextColor(ContextCompat.getColor(context, R.color.tag_green));
} else {
String colorStr;
if (!TextUtils.isEmpty(tagType) && tagType.equals("type")) { // 游戏标签
if (!TextUtils.isEmpty(tagType) && "type".equals(tagType)) { // 游戏标签
colorStr = "#ff6a28";
} else {
colorStr = TagUtils.getInstance(context).getColor(tagStr);