Skip to content

Commit f06125a

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Fixes for QS:" into jb-mr1-dev
2 parents 144d405 + 6e2810b commit f06125a

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)