diff options
author | Daniel Sandler <dsandler@android.com> | 2012-06-13 13:36:52 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-06-13 13:40:15 -0400 |
commit | 66d92f81093e648186b31d0416555ec05aff0e0b (patch) | |
tree | 49dad02d2ed0b63376fe9e473e3007f923a8890c /packages | |
parent | 913bf80416a81f2783376939e7ad0b956975b05c (diff) | |
download | frameworks_base-66d92f81093e648186b31d0416555ec05aff0e0b.zip frameworks_base-66d92f81093e648186b31d0416555ec05aff0e0b.tar.gz frameworks_base-66d92f81093e648186b31d0416555ec05aff0e0b.tar.bz2 |
Remove an unnecessary animation.
When the notification panel is full-width (small devices
like phones) we can just leave the icons showing all the
time, which saves a little CPU during the
performance-critical shade expand operation.
On sw600dp devices we continue to use DISABLE_SYSTEM_INFO to
smoothly hide the status bar when the notification panel
appears (and show it when the panel is dismissed).
Bug: 6555172
Change-Id: I59a1226549dd1e51c375c3972b47079c1ee856b0
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 87e95da..ec71945 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -167,6 +167,7 @@ public class PhoneStatusBar extends BaseStatusBar { int mNotificationPanelMarginBottomPx, mNotificationPanelMarginLeftPx; int mNotificationPanelGravity; int mNotificationPanelMinHeight; + boolean mNotificationPanelIsFullScreenWidth; // top bar View mClearButton; @@ -350,9 +351,11 @@ public class PhoneStatusBar extends BaseStatusBar { return true; } }); + mNotificationPanelIsFullScreenWidth = + (mNotificationPanel.getLayoutParams().width == ViewGroup.LayoutParams.MATCH_PARENT); mNotificationPanel.setSystemUiVisibility( View.STATUS_BAR_DISABLE_NOTIFICATION_TICKER - | View.STATUS_BAR_DISABLE_SYSTEM_INFO); + | (mNotificationPanelIsFullScreenWidth ? 0 : View.STATUS_BAR_DISABLE_SYSTEM_INFO)); if (!ActivityManager.isHighEndGfx(mDisplay)) { mStatusBarWindow.setBackground(null); |