Skip to content

Commit cb5ed06

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Hide the expanded status bar view when not in use." into jb-dev
2 parents 308904d + 3ac558b commit cb5ed06

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/SystemUI/res/layout-sw600dp/super_status_bar.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
android:layout_width="@dimen/notification_panel_width"
3636
android:layout_height="match_parent"
3737
android:layout_gravity="center_horizontal|top"
38+
android:visibility="invisible"
3839
/>
3940

4041
</com.android.systemui.statusbar.phone.StatusBarWindowView>

packages/SystemUI/res/layout/super_status_bar.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<include layout="@layout/status_bar_expanded"
3535
android:layout_width="match_parent"
3636
android:layout_height="match_parent"
37+
android:visibility="invisible"
3738
/>
3839

3940
</com.android.systemui.statusbar.phone.StatusBarWindowView>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,7 @@ private void makeExpandedVisible() {
996996
}
997997

998998
mExpandedVisible = true;
999+
mNotificationPanel.setVisibility(View.VISIBLE);
9991000

10001001
updateExpandedViewPos(EXPANDED_LEAVE_ALONE);
10011002

@@ -1089,7 +1090,7 @@ void performCollapse() {
10891090
}
10901091
mExpandedVisible = false;
10911092
visibilityChanged(false);
1092-
//mNotificationPanel.setVisibility(View.GONE);
1093+
mNotificationPanel.setVisibility(View.INVISIBLE);
10931094

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

0 commit comments

Comments
 (0)