Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56df8668 authored by Daniel Sandler's avatar Daniel Sandler Committed by The Android Automerger
Browse files

Hide the expanded status bar view when not in use.

Bug: 6511388
Change-Id: I8df11f80871cbd739712179034e04f49bb6b0d9d
parent 1f71f642
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
        android:layout_width="@dimen/notification_panel_width"
        android:layout_height="match_parent"
        android:layout_gravity="center_horizontal|top"
        android:visibility="invisible"
        />

</com.android.systemui.statusbar.phone.StatusBarWindowView>
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
    <include layout="@layout/status_bar_expanded"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="invisible"
        />

</com.android.systemui.statusbar.phone.StatusBarWindowView>
+2 −1
Original line number Diff line number Diff line
@@ -996,6 +996,7 @@ public class PhoneStatusBar extends BaseStatusBar {
        }
        
        mExpandedVisible = true;
        mNotificationPanel.setVisibility(View.VISIBLE);

        updateExpandedViewPos(EXPANDED_LEAVE_ALONE);

@@ -1089,7 +1090,7 @@ public class PhoneStatusBar extends BaseStatusBar {
        }
        mExpandedVisible = false;
        visibilityChanged(false);
        //mNotificationPanel.setVisibility(View.GONE);
        mNotificationPanel.setVisibility(View.INVISIBLE);

        // Shrink the window to the size of the status bar only
        WindowManager.LayoutParams lp = (WindowManager.LayoutParams) mStatusBarWindow.getLayoutParams();