Update flyover if notification changes.

Bug: 3292466
Change-Id: I11407b7a0eedc3d8474d34e45e4b472a2dc61d27
This commit is contained in:
Daniel Sandler
2010-12-16 17:29:50 -05:00
parent cf321c1abe
commit 7ef29b5a06

View File

@@ -598,6 +598,14 @@ public class TabletStatusBar extends StatusBar {
handleNotificationError(key, notification, "Couldn't update icon: " + ic);
return;
}
if (key == mNotificationPeekKey) {
// must update the peek window
Message peekMsg = mHandler.obtainMessage(MSG_OPEN_NOTIFICATION_PEEK);
peekMsg.arg1 = mNotificationPeekIndex;
mHandler.removeMessages(MSG_OPEN_NOTIFICATION_PEEK);
mHandler.sendMessage(peekMsg);
}
}
catch (RuntimeException e) {
// It failed to add cleanly. Log, and remove the view from the panel.