Replace usages of deprecated Resources.getColor() and getColorStateList()

Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
This commit is contained in:
Alan Viverette
2015-03-18 18:37:18 -07:00
parent a2bdd8b832
commit 7f25a63f06

View File

@@ -2998,7 +2998,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
notification.icon = icon;
notification.flags = Notification.FLAG_AUTO_CANCEL;
notification.tickerText = title;
notification.color = mContext.getResources().getColor(
notification.color = mContext.getColor(
com.android.internal.R.color.system_notification_accent_color);
notification.setLatestEventInfo(mContext, title, details, notification.contentIntent);
notification.contentIntent = intent;