1、修复AppController push被禁用的问题

2、修复deprecated api call, Resources.getColor()
This commit is contained in:
CsHeng
2017-05-08 17:41:58 +08:00
parent 375f538bc1
commit 0ec14da2ac
41 changed files with 378 additions and 488 deletions

View File

@ -3,6 +3,7 @@ package com.gh.common.util;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.support.v4.content.ContextCompat;
import android.util.TypedValue;
import android.view.View;
import android.widget.LinearLayout;
@ -55,7 +56,7 @@ public class GameViewUtils {
tag.setText(tagStr);
if ("官方版".equals(tagStr) || "已关注".equals(tagStr)) {
tag.setBackgroundResource(R.drawable.border_green_bg);
tag.setTextColor(context.getResources().getColor(R.color.tag_green));
tag.setTextColor(ContextCompat.getColor(context, R.color.tag_green));
} else {
String colorStr = TagUtils.getInstance(context).getColor(tagStr);
if (colorStr == null) {