Merge "Attempt to fix blank lockscreen."
This commit is contained in:
@@ -2995,14 +2995,22 @@ 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() {
|
||||||
mNotificationPanel.getViewTreeObserver().removeOnGlobalLayoutListener(this);
|
if (mStatusBarWindow.getHeight() != getStatusBarHeight()) {
|
||||||
mNotificationPanel.setExpandedFraction(1);
|
mNotificationPanel.getViewTreeObserver().removeOnGlobalLayoutListener(this);
|
||||||
}
|
mNotificationPanel.setExpandedFraction(1);
|
||||||
});
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void instantCollapseNotificationPanel() {
|
private void instantCollapseNotificationPanel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user