File tree Expand file tree Collapse file tree
packages/SystemUI/src/com/android/systemui/statusbar/phone Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1079,7 +1079,12 @@ protected void setAreThereNotifications() {
10791079 + " any=" + any + " clearable=" + clearable );
10801080 }
10811081
1082- if (mClearButton .isShown ()) {
1082+ if (mHasFlipSettings
1083+ && mFlipSettingsView != null
1084+ && mFlipSettingsView .getVisibility () == View .VISIBLE ) {
1085+ // the flip settings panel is showing; we should not be shown
1086+ mClearButton .setVisibility (View .INVISIBLE );
1087+ } else if (mClearButton .isShown ()) {
10831088 if (clearable != (mClearButton .getAlpha () == 1.0f )) {
10841089 ObjectAnimator clearAnimation = ObjectAnimator .ofFloat (
10851090 mClearButton , "alpha" , clearable ? 1.0f : 0.0f ).setDuration (250 );
@@ -1522,6 +1527,10 @@ public void animateCollapseQuickSettings() {
15221527 mStatusBarView .collapseAllPanels (true );
15231528 }
15241529
1530+ void makeExpandedInvisibleSoon () {
1531+ mHandler .postDelayed (new Runnable () { public void run () { makeExpandedInvisible (); }}, 50 );
1532+ }
1533+
15251534 void makeExpandedInvisible () {
15261535 if (SPEW ) Slog .d (TAG , "makeExpandedInvisible: mExpandedVisible=" + mExpandedVisible
15271536 + " mExpandedVisible=" + mExpandedVisible );
Original file line number Diff line number Diff line change @@ -154,7 +154,8 @@ public void startOpeningPanel(PanelView panel) {
154154 @ Override
155155 public void onAllPanelsCollapsed () {
156156 super .onAllPanelsCollapsed ();
157- mBar .makeExpandedInvisible ();
157+ // give animations time to settle
158+ mBar .makeExpandedInvisibleSoon ();
158159 mFadingPanel = null ;
159160 mLastFullyOpenedPanel = null ;
160161 }
You can’t perform that action at this time.
0 commit comments