diff options
-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; |