Skip to content

Commit a1d40e4

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Remove an unnecessary animation." into jb-dev
2 parents c07dc74 + 66d92f8 commit a1d40e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ public class PhoneStatusBar extends BaseStatusBar {
171171
final Rect mNotificationPanelBackgroundPadding = new Rect();
172172
int mNotificationPanelGravity;
173173
int mNotificationPanelMinHeight;
174+
boolean mNotificationPanelIsFullScreenWidth;
174175

175176
// top bar
176177
View mClearButton;
@@ -361,9 +362,11 @@ public boolean onTouch(View v, MotionEvent event) {
361362
return true;
362363
}
363364
});
365+
mNotificationPanelIsFullScreenWidth =
366+
(mNotificationPanel.getLayoutParams().width == ViewGroup.LayoutParams.MATCH_PARENT);
364367
mNotificationPanel.setSystemUiVisibility(
365368
View.STATUS_BAR_DISABLE_NOTIFICATION_TICKER
366-
| View.STATUS_BAR_DISABLE_SYSTEM_INFO);
369+
| (mNotificationPanelIsFullScreenWidth ? 0 : View.STATUS_BAR_DISABLE_SYSTEM_INFO));
367370

368371
if (!ActivityManager.isHighEndGfx(mDisplay)) {
369372
mStatusBarWindow.setBackground(null);

0 commit comments

Comments
 (0)