Skip to content

Commit 4e72304

Browse files
XSJoJoAndroid Git Automerger
authored andcommitted
am 767c0116: Merge "Attemp to fix blank lockscreen #2."
* commit '767c01161ad4c18bf476e224a93345a7e8a02746': Attemp to fix blank lockscreen #2.
2 parents 3ab060e + 10c84f0 commit 4e72304

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,9 +1625,9 @@ boolean panelsEnabled() {
16251625
return (mDisabled & StatusBarManager.DISABLE_EXPAND) == 0;
16261626
}
16271627

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

@@ -3009,8 +3009,9 @@ private void showBouncer() {
30093009

30103010
private void instantExpandNotificationsPanel() {
30113011

3012-
// Make our window larger.
3013-
mStatusBarWindowManager.setStatusBarExpanded(true);
3012+
// Make our window larger and the panel visible.
3013+
makeExpandedVisible(true);
3014+
mNotificationPanel.setVisibility(View.VISIBLE);
30143015

30153016
// Wait for window manager to pickup the change, so we know the maximum height of the panel
30163017
// then.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public PanelView selectPanelForTouch(MotionEvent touch) {
106106
@Override
107107
public void onPanelPeeked() {
108108
super.onPanelPeeked();
109-
mBar.makeExpandedVisible();
109+
mBar.makeExpandedVisible(false);
110110
}
111111

112112
@Override

0 commit comments

Comments
 (0)