Skip to content

Commit 5599b9f

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge changes Ie09b6222,I90a0ac21 into jb-dev
* changes: Fix a longstanding bug in the shade pulldown trajectory. All Status in a Window.
2 parents d6be37d + 1fac1fd commit 5599b9f

File tree

5 files changed

+154
-146
lines changed

5 files changed

+154
-146
lines changed

packages/SystemUI/res/layout/status_bar.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<com.android.systemui.statusbar.phone.PhoneStatusBarView
2323
xmlns:android="http://schemas.android.com/apk/res/android"
2424
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
25+
android:id="@+id/status_bar"
2526
android:background="@drawable/status_bar_background"
2627
android:orientation="vertical"
2728
android:focusable="true"

packages/SystemUI/res/layout/status_bar_expanded.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121

122122
<com.android.systemui.statusbar.phone.CloseDragHandle android:id="@+id/close"
123123
android:layout_width="match_parent"
124-
android:layout_height="34dp"
124+
android:layout_height="@dimen/close_handle_height"
125125
android:layout_gravity="bottom"
126126
android:orientation="vertical"
127127
>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
**
4+
** Copyright 2012, The Android Open Source Project
5+
**
6+
** Licensed under the Apache License, Version 2.0 (the "License");
7+
** you may not use this file except in compliance with the License.
8+
** You may obtain a copy of the License at
9+
**
10+
** http://www.apache.org/licenses/LICENSE-2.0
11+
**
12+
** Unless required by applicable law or agreed to in writing, software
13+
** distributed under the License is distributed on an "AS IS" BASIS,
14+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
** See the License for the specific language governing permissions and
16+
** limitations under the License.
17+
*/
18+
-->
19+
20+
<!-- This is the combined status bar / notification panel window. -->
21+
<FrameLayout
22+
xmlns:android="http://schemas.android.com/apk/res/android"
23+
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
24+
android:focusable="true"
25+
android:descendantFocusability="afterDescendants"
26+
android:fitsSystemWindows="true"
27+
>
28+
29+
<include layout="@layout/status_bar_expanded"
30+
android:layout_width="match_parent"
31+
android:layout_height="match_parent"
32+
/>
33+
34+
<include layout="@layout/status_bar"
35+
android:layout_width="match_parent"
36+
android:layout_height="@*android:dimen/status_bar_height"
37+
/>
38+
39+
</FrameLayout>

packages/SystemUI/res/values/dimens.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,6 @@
118118
<!-- Diameter of outer shape drawable shown in navbar search-->
119119
<dimen name="navbar_search_outerring_diameter">300dip</dimen>
120120

121+
<!-- Height of the draggable handle at the bottom of the phone notification panel -->
122+
<dimen name="close_handle_height">34dp</dimen>
121123
</resources>

0 commit comments

Comments
 (0)