Merge "Hide the expanded status bar view when not in use." into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cb5ed06ada
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user