From 255dd04271088590fedc46c8e22b2fd4ab142d39 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 19 Aug 2014 22:29:02 +0200 Subject: Added notification color to all system notifications Bug: 17128331 Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb --- .../java/com/android/internal/location/GpsNetInitiatedHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'location/java') diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java index b33ba00854ca..5a286ee4a25c 100644 --- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java +++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java @@ -209,7 +209,9 @@ public class GpsNetInitiatedHandler { // if not to popup dialog immediately, pending intent will open the dialog Intent intent = !mPopupImmediately ? getDlgIntent(notif) : new Intent(); - PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, intent, 0); + PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, intent, 0); + mNiNotification.color = mContext.getResources().getColor( + com.android.internal.R.color.system_notification_accent_color); mNiNotification.setLatestEventInfo(mContext, title, message, pi); notificationManager.notifyAsUser(null, notif.notificationId, mNiNotification, -- cgit v1.2.3-59-g8ed1b