Merge "Fixes for QS:" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f06125aab0
@@ -1079,7 +1079,12 @@ public class PhoneStatusBar extends BaseStatusBar {
|
|||||||
+ " any=" + any + " clearable=" + clearable);
|
+ " any=" + any + " clearable=" + clearable);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mClearButton.isShown()) {
|
if (mHasFlipSettings
|
||||||
|
&& mFlipSettingsView != null
|
||||||
|
&& mFlipSettingsView.getVisibility() == View.VISIBLE) {
|
||||||
|
// the flip settings panel is showing; we should not be shown
|
||||||
|
mClearButton.setVisibility(View.INVISIBLE);
|
||||||
|
} else if (mClearButton.isShown()) {
|
||||||
if (clearable != (mClearButton.getAlpha() == 1.0f)) {
|
if (clearable != (mClearButton.getAlpha() == 1.0f)) {
|
||||||
ObjectAnimator clearAnimation = ObjectAnimator.ofFloat(
|
ObjectAnimator clearAnimation = ObjectAnimator.ofFloat(
|
||||||
mClearButton, "alpha", clearable ? 1.0f : 0.0f).setDuration(250);
|
mClearButton, "alpha", clearable ? 1.0f : 0.0f).setDuration(250);
|
||||||
@@ -1522,6 +1527,10 @@ public class PhoneStatusBar extends BaseStatusBar {
|
|||||||
mStatusBarView.collapseAllPanels(true);
|
mStatusBarView.collapseAllPanels(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void makeExpandedInvisibleSoon() {
|
||||||
|
mHandler.postDelayed(new Runnable() { public void run() { makeExpandedInvisible(); }}, 50);
|
||||||
|
}
|
||||||
|
|
||||||
void makeExpandedInvisible() {
|
void makeExpandedInvisible() {
|
||||||
if (SPEW) Slog.d(TAG, "makeExpandedInvisible: mExpandedVisible=" + mExpandedVisible
|
if (SPEW) Slog.d(TAG, "makeExpandedInvisible: mExpandedVisible=" + mExpandedVisible
|
||||||
+ " mExpandedVisible=" + mExpandedVisible);
|
+ " mExpandedVisible=" + mExpandedVisible);
|
||||||
|
|||||||
@@ -154,7 +154,8 @@ public class PhoneStatusBarView extends PanelBar {
|
|||||||
@Override
|
@Override
|
||||||
public void onAllPanelsCollapsed() {
|
public void onAllPanelsCollapsed() {
|
||||||
super.onAllPanelsCollapsed();
|
super.onAllPanelsCollapsed();
|
||||||
mBar.makeExpandedInvisible();
|
// give animations time to settle
|
||||||
|
mBar.makeExpandedInvisibleSoon();
|
||||||
mFadingPanel = null;
|
mFadingPanel = null;
|
||||||
mLastFullyOpenedPanel = null;
|
mLastFullyOpenedPanel = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user