summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2011-12-07 15:16:18 -0500
committerDaniel Sandler <dsandler@android.com>2011-12-07 15:22:30 -0500
commit5a8266083252e172fe784fa0edaebe3c775cd848 (patch)
treedddaf9ac6c238932a488a571ed8026d4d8669758 /packages/SystemUI/src/com/android
parenta85cc28229c2d5114fcc83c3d7ebfd6894fd4b98 (diff)
downloadframeworks_base-5a8266083252e172fe784fa0edaebe3c775cd848.zip
frameworks_base-5a8266083252e172fe784fa0edaebe3c775cd848.tar.gz
frameworks_base-5a8266083252e172fe784fa0edaebe3c775cd848.tar.bz2
Invalidate the whole status bar after layout transitions.
This should ensure that the menu icon doesn't persist on-screen even after it's been removed from its parent. (Related to the KeyButtonView animation glow and the tricks it plays with invalidation.) Bug: 5647480 Change-Id: I8ca503ef647aed99335d3dbecedce38fa0b70c65
Diffstat (limited to 'packages/SystemUI/src/com/android')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java10
1 files changed, 10 insertions, 0 deletions
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 b919aec..05ad793 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
@@ -514,6 +514,16 @@ public class TabletStatusBar extends StatusBar implements
// don't wait for these transitions; we just want icons to fade in/out, not move around
lt.setDuration(LayoutTransition.CHANGE_APPEARING, 0);
lt.setDuration(LayoutTransition.CHANGE_DISAPPEARING, 0);
+ lt.addTransitionListener(new LayoutTransition.TransitionListener() {
+ public void endTransition(LayoutTransition transition, ViewGroup container,
+ View view, int transitionType) {
+ // ensure the menu button doesn't stick around on the status bar after it's been
+ // removed
+ mBarContents.invalidate();
+ }
+ public void startTransition(LayoutTransition transition, ViewGroup container,
+ View view, int transitionType) {}
+ });
mNavigationArea.setLayoutTransition(lt);
// no multi-touch on the nav buttons
mNavigationArea.setMotionEventSplittingEnabled(false);