Basic support for notification payloads in the panel.

Line-item veto is there, but allows you to cancel some
notifications you probably shouldn't be canceling. (Should
hide the "X" in those cases.)

No preference given to "sticky" notifications, because
there's no such thing yet.

Notifications are now limited to 4 visible icons, per spec.
The implementation is a total hack for now.

Change-Id: Ibdf433ae94189117f983c510fe5e0cff0bf5c44c
This commit is contained in:
Daniel Sandler
2010-08-04 15:54:58 -04:00
parent 4e68d506b0
commit 0f0b11c871
18 changed files with 291 additions and 66 deletions

View File

@ -84,6 +84,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub
void onSetDisabled(int status);
void onClearAll();
void onNotificationClick(String pkg, String tag, int id);
void onNotificationClear(String pkg, String tag, int id);
void onPanelRevealed();
void onNotificationError(String pkg, String tag, int id,
int uid, int initialPid, String message);
@ -302,6 +303,12 @@ public class StatusBarManagerService extends IStatusBarService.Stub
mNotificationCallbacks.onNotificationError(pkg, tag, id, uid, initialPid, message);
}
public void onNotificationClear(String pkg, String tag, int id) {
enforceStatusBarService();
mNotificationCallbacks.onNotificationClear(pkg, tag, id);
}
public void onClearAllNotifications() {
enforceStatusBarService();