Skip to content

Commit dc8cb9a

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Invalidate the whole status bar after layout transitions." into ics-mr1
2 parents 1662a87 + 5a82660 commit dc8cb9a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,16 @@ protected View makeStatusBarView() {
514514
// don't wait for these transitions; we just want icons to fade in/out, not move around
515515
lt.setDuration(LayoutTransition.CHANGE_APPEARING, 0);
516516
lt.setDuration(LayoutTransition.CHANGE_DISAPPEARING, 0);
517+
lt.addTransitionListener(new LayoutTransition.TransitionListener() {
518+
public void endTransition(LayoutTransition transition, ViewGroup container,
519+
View view, int transitionType) {
520+
// ensure the menu button doesn't stick around on the status bar after it's been
521+
// removed
522+
mBarContents.invalidate();
523+
}
524+
public void startTransition(LayoutTransition transition, ViewGroup container,
525+
View view, int transitionType) {}
526+
});
517527
mNavigationArea.setLayoutTransition(lt);
518528
// no multi-touch on the nav buttons
519529
mNavigationArea.setMotionEventSplittingEnabled(false);

0 commit comments

Comments
 (0)