Skip to content

Commit

Permalink
Attemp to fix blank lockscreen #2.
Browse files Browse the repository at this point in the history
Bug: 14280857
Change-Id: Ib868cc7a01d24f7169310774a5397b90a2d5b35f
  • Loading branch information
XSJoJo authored and The Android Automerger committed Apr 28, 2014
1 parent 576d3cd commit 53a2d78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1622,9 +1622,9 @@ boolean panelsEnabled() {
return (mDisabled & StatusBarManager.DISABLE_EXPAND) == 0;
}

void makeExpandedVisible() {
void makeExpandedVisible(boolean force) {
if (SPEW) Log.d(TAG, "Make expanded visible: expanded visible=" + mExpandedVisible);
if (mExpandedVisible || !panelsEnabled()) {
if (!force && (mExpandedVisible || !panelsEnabled())) {
return;
}

Expand Down Expand Up @@ -3003,8 +3003,9 @@ private void showBouncer() {

private void instantExpandNotificationsPanel() {

// Make our window larger.
mStatusBarWindowManager.setStatusBarExpanded(true);
// Make our window larger and the panel visible.
makeExpandedVisible(true);
mNotificationPanel.setVisibility(View.VISIBLE);

// Wait for window manager to pickup the change, so we know the maximum height of the panel
// then.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public PanelView selectPanelForTouch(MotionEvent touch) {
@Override
public void onPanelPeeked() {
super.onPanelPeeked();
mBar.makeExpandedVisible();
mBar.makeExpandedVisible(false);
}

@Override
Expand Down

0 comments on commit 53a2d78

Please sign in to comment.