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:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user