summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-05-23 15:18:27 -0400
committerJoe Onorato <joeo@android.com>2010-06-02 14:48:43 -0700
commite345fff2f80947b0a821f6674c197a02b7bff08e (patch)
tree0e6189b3f1716931b8fe28a8ce1ddc83dadea299 /services/java/com/android/server
parenta0c56fe93925d20d9c0b830b9664699ce557e78c (diff)
downloadframeworks_base-e345fff2f80947b0a821f6674c197a02b7bff08e.zip
frameworks_base-e345fff2f80947b0a821f6674c197a02b7bff08e.tar.gz
frameworks_base-e345fff2f80947b0a821f6674c197a02b7bff08e.tar.bz2
notifications show
Change-Id: I9240b803c643874828c95afcf1ba9ed91194dbc0
Diffstat (limited to 'services/java/com/android/server')
-rw-r--r--services/java/com/android/server/status/StatusBarManagerService.java21
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) {
+ }
+ }
}
}