Get icon updating working.

Change-Id: I749967545af5c97756e316231e740208fcd8ad3c
This commit is contained in:
Joe Onorato
2010-05-14 10:05:10 -07:00
parent 514ad663f0
commit 66d7d01ed9
4 changed files with 7 additions and 6 deletions

View File

@@ -196,6 +196,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub
}
StatusBarIcon icon = new StatusBarIcon(iconPackage, iconId, iconLevel);
//Slog.d(TAG, "setIcon slot=" + slot + " index=" + index + " icon=" + icon);
mIcons.setIcon(index, icon);
// Tell the client. If it fails, it'll restart soon and we'll sync up.
@@ -287,9 +288,6 @@ public class StatusBarManagerService extends IStatusBarService.Stub
// ================================================================================
// Can be called from any thread
// ================================================================================
public void setIconVisibility(IBinder key, boolean visible) {
addPendingOp(OP_SET_VISIBLE, key, visible);
}
private void addPendingOp(int code, IBinder key, IconData data, NotificationData n, int i) {
synchronized (mQueueLock) {