Skip to content

Commit 5a82660

Browse files
committed
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
1 parent a85cc28 commit 5a82660

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)