From 7ef29b5a066e87ac890cf198c58e2ffe8549bea1 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 16 Dec 2010 17:29:50 -0500 Subject: [PATCH] Update flyover if notification changes. Bug: 3292466 Change-Id: I11407b7a0eedc3d8474d34e45e4b472a2dc61d27 --- .../systemui/statusbar/tablet/TabletStatusBar.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java index 25662492ee4c6..06c058b9d1556 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java @@ -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.