diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/status/StatusBarManagerService.java | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/services/java/com/android/server/status/StatusBarManagerService.java b/services/java/com/android/server/status/StatusBarManagerService.java index 152f0a3..22b3810 100644 --- a/services/java/com/android/server/status/StatusBarManagerService.java +++ b/services/java/com/android/server/status/StatusBarManagerService.java @@ -271,7 +271,12 @@ public class StatusBarManagerService extends IStatusBarService.Stub synchronized (mNotifications) { IBinder key = new Binder(); mNotifications.add(key, notification); - // TODO: tell mBar + if (mBar != null) { + try { + mBar.addNotification(key, notification); + } catch (RemoteException ex) { + } + } return key; } } @@ -279,14 +284,24 @@ public class StatusBarManagerService extends IStatusBarService.Stub public void updateNotification(IBinder key, StatusBarNotification notification) { synchronized (mNotifications) { mNotifications.update(key, notification); - // TODO: tell mBar + if (mBar != null) { + try { + mBar.updateNotification(key, notification); + } catch (RemoteException ex) { + } + } } } public void removeNotification(IBinder key) { synchronized (mNotifications) { mNotifications.remove(key); - // TODO: tell mBar + if (mBar != null) { + try { + mBar.removeNotification(key); + } catch (RemoteException ex) { + } + } } } |