Merge "Hide the expanded status bar view when not in use." into jb-dev

This commit is contained in:
Daniel Sandler
2012-05-17 10:55:58 -07:00
committed by Android (Google) Code Review
3 changed files with 4 additions and 1 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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();