Remove obsolete optimization.

Reverts JB optimization I7ae978caa1f28932ee56f65484b18330a4406b80
made obsolete by I2f9b0591d44599b07bd83f03c4e09e6dd98e1448 in MR1.

Change-Id: I8a738624f9a902648e317f2eac25fd56c3b47a46
This commit is contained in:
John Spurlock
2013-07-25 13:15:42 -04:00
parent 8cf4e13e46
commit a5baf89102
2 changed files with 3 additions and 9 deletions

View File

@ -1353,7 +1353,7 @@ public class PhoneStatusBar extends BaseStatusBar {
}
};
void makeExpandedVisible(boolean revealAfterDraw) {
void makeExpandedVisible() {
if (SPEW) Log.d(TAG, "Make expanded visible: expanded visible=" + mExpandedVisible);
if (mExpandedVisible) {
return;
@ -1376,12 +1376,6 @@ public class PhoneStatusBar extends BaseStatusBar {
lp.height = ViewGroup.LayoutParams.MATCH_PARENT;
mWindowManager.updateViewLayout(mStatusBarWindow, lp);
// Updating the window layout will force an expensive traversal/redraw.
// Kick off the reveal animation after this is complete to avoid animation latency.
if (revealAfterDraw) {
// mHandler.post(mStartRevealAnimation);
}
visibilityChanged(true);
suspendAutohide();
@ -1766,7 +1760,7 @@ public class PhoneStatusBar extends BaseStatusBar {
editor.putBoolean(Prefs.SHOWN_QUICK_SETTINGS_HELP, true);
editor.apply();
makeExpandedVisible(true); // enforce visibility in case the shade is still animating closed
makeExpandedVisible(); // enforce visibility in case the shade is still animating closed
animateExpandNotificationsPanel();
mSuppressStatusBarDrags = false;

View File

@ -142,7 +142,7 @@ public class PhoneStatusBarView extends PanelBar {
@Override
public void onPanelPeeked() {
super.onPanelPeeked();
mBar.makeExpandedVisible(true);
mBar.makeExpandedVisible();
}
@Override