diff options
author | Joe Onorato <joeo@android.com> | 2010-05-17 22:26:12 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2010-06-02 14:48:43 -0700 |
commit | 18e69dfc7235f8a4bfe257f9d1c43539049a22ce (patch) | |
tree | da47804d8acd8680cfdd0fb8fa33dad6e01889c1 /packages | |
parent | 6528b35585020fafe7e39dfa416f728df5158c63 (diff) | |
download | frameworks_base-18e69dfc7235f8a4bfe257f9d1c43539049a22ce.zip frameworks_base-18e69dfc7235f8a4bfe257f9d1c43539049a22ce.tar.gz frameworks_base-18e69dfc7235f8a4bfe257f9d1c43539049a22ce.tar.bz2 |
Checkpoint. Data structures for Notifications in place.
Change-Id: I146fb9bc1d349112541368e2c99a667821dfdf6e
Diffstat (limited to 'packages')
3 files changed, 6 insertions, 2 deletions
diff --git a/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/PhoneStatusBarService.java b/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/PhoneStatusBarService.java index bc02625..1ae3585 100644 --- a/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/PhoneStatusBarService.java +++ b/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/PhoneStatusBarService.java @@ -426,6 +426,11 @@ public class PhoneStatusBarService extends StatusBarService { return row; } + /* + StatusBarIcon icon = new StatusBarIcon(pkg, notification.icon, + notification.iconLevel); + icon.number = notification.number; + */ void addNotificationView(StatusBarNotification notification) { if (notification.view != null) { throw new RuntimeException("Assertion failed: notification.view=" diff --git a/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarIconView.java b/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarIconView.java index 874fcfa..58b9822 100644 --- a/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarIconView.java +++ b/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarIconView.java @@ -61,6 +61,7 @@ public class StatusBarIconView extends AnimatedImageView { && mIcon.visible == icon.visible; if (!iconEquals) { setImageDrawable(getIcon(icon)); + // TODO: What if getIcon returns null? } if (!levelEquals) { setImageLevel(icon.iconLevel); diff --git a/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarService.java b/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarService.java index d783c11..20f3552 100644 --- a/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarService.java +++ b/packages/StatusBarPhone/src/com/android/policy/statusbar/phone/StatusBarService.java @@ -37,8 +37,6 @@ import com.android.internal.statusbar.IStatusBarService; import com.android.internal.statusbar.StatusBarIcon; import com.android.internal.statusbar.StatusBarIconList; -import com.android.server.status.NotificationData; - public abstract class StatusBarService extends Service implements CommandQueue.Callbacks { private static final String TAG = "StatusBarService"; |