diff options
author | rmcc@arcee-kang1 <cyanogenmod@cerqueira.org> | 2012-03-30 18:01:16 +0100 |
---|---|---|
committer | rmcc@arcee-kang1 <cyanogenmod@cerqueira.org> | 2012-03-30 18:01:16 +0100 |
commit | ac0eaa9e829dd8bb316c42b9d3493ee8343f1ca4 (patch) | |
tree | 1fda5504baba0b02be28af504e49e81e54f37c35 | |
parent | 06bb5ef0f2509a00b65539d48fa6a96569f14bd5 (diff) | |
download | frameworks_base-ac0eaa9e829dd8bb316c42b9d3493ee8343f1ca4.zip frameworks_base-ac0eaa9e829dd8bb316c42b9d3493ee8343f1ca4.tar.gz frameworks_base-ac0eaa9e829dd8bb316c42b9d3493ee8343f1ca4.tar.bz2 |
Revert "Fix wrong 'USB debugging connected' notify color"
This reverts commit e952e69b3177d3324696901a644160d4b24423be.
-rwxr-xr-x | services/java/com/android/server/NotificationManagerService.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 2d3efa0..a2bfe78 100755 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -1819,14 +1819,7 @@ public class NotificationManagerService extends INotificationManager.Stub PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); - try { - //The service context doesn't contain the style needed to skin the notification in the Status Bar - Context c = mContext.createPackageContext("com.android.systemui",Context.CONTEXT_RESTRICTED); - mAdbNotification.setLatestEventInfo(c, title, message, pi); - } catch(Exception ex) { - //Program would NEVER follow this path. If so we use the current context - mAdbNotification.setLatestEventInfo(mContext, title, message, pi); - } + mAdbNotification.setLatestEventInfo(mContext, title, message, pi); mAdbNotificationShown = true; mAdbNotificationIsUsb = !networkEnabled; |