Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +14 −6 Original line number Original line Diff line number Diff line Loading @@ -2995,13 +2995,21 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode { } } private void instantExpandNotificationsPanel() { private void instantExpandNotificationsPanel() { // Make our window larger. mStatusBarWindowManager.setStatusBarExpanded(true); // Wait for window manager to pickup the change, so we know the maximum height of the panel // then. mNotificationPanel.getViewTreeObserver().addOnGlobalLayoutListener( mNotificationPanel.getViewTreeObserver().addOnGlobalLayoutListener( new ViewTreeObserver.OnGlobalLayoutListener() { new ViewTreeObserver.OnGlobalLayoutListener() { @Override @Override public void onGlobalLayout() { public void onGlobalLayout() { if (mStatusBarWindow.getHeight() != getStatusBarHeight()) { mNotificationPanel.getViewTreeObserver().removeOnGlobalLayoutListener(this); mNotificationPanel.getViewTreeObserver().removeOnGlobalLayoutListener(this); mNotificationPanel.setExpandedFraction(1); mNotificationPanel.setExpandedFraction(1); } } } }); }); } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +14 −6 Original line number Original line Diff line number Diff line Loading @@ -2995,13 +2995,21 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode { } } private void instantExpandNotificationsPanel() { private void instantExpandNotificationsPanel() { // Make our window larger. mStatusBarWindowManager.setStatusBarExpanded(true); // Wait for window manager to pickup the change, so we know the maximum height of the panel // then. mNotificationPanel.getViewTreeObserver().addOnGlobalLayoutListener( mNotificationPanel.getViewTreeObserver().addOnGlobalLayoutListener( new ViewTreeObserver.OnGlobalLayoutListener() { new ViewTreeObserver.OnGlobalLayoutListener() { @Override @Override public void onGlobalLayout() { public void onGlobalLayout() { if (mStatusBarWindow.getHeight() != getStatusBarHeight()) { mNotificationPanel.getViewTreeObserver().removeOnGlobalLayoutListener(this); mNotificationPanel.getViewTreeObserver().removeOnGlobalLayoutListener(this); mNotificationPanel.setExpandedFraction(1); mNotificationPanel.setExpandedFraction(1); } } } }); }); } } Loading