Replace usages of deprecated Resources.getColor() and getColorStateList()
Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user