Skip to content

Commit e1a473b

Browse files
Jim MillerAndroid (Google) Code Review
authored andcommitted
Merge "Don't show ECA in landscape mode on phones." into jb-mr1-lockscreen-dev
2 parents 6be441c + 9e0a250 commit e1a473b

12 files changed

+108
-8
lines changed

core/res/res/layout/keyguard_account_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</RelativeLayout>
7676

7777
<!-- no room for ECA on this screen right now
78-
<include layout="@layout/keyguard_emergency_carrier_area"
78+
<include layout="@layout/keyguard_eca"
7979
android:id="@+id/keyguard_selector_fade_container"
8080
android:layout_width="match_parent"
8181
android:layout_height="wrap_content"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 a blank layout to simplify implementation on landscape on phones
21+
it is referenced indirectly by keyguard_eca -->
22+
<LinearLayout
23+
xmlns:android="http://schemas.android.com/apk/res/android"
24+
android:layout_width="0dip"
25+
android:layout_height="0dip"
26+
android:orientation="vertical"
27+
android:gravity="center"
28+
android:layout_gravity="center_horizontal"
29+
android:layout_alignParentBottom="true">
30+
31+
</LinearLayout>

core/res/res/layout/keyguard_face_unlock_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</com.android.internal.widget.FaceUnlockView>
6969
</FrameLayout>
7070

71-
<include layout="@layout/keyguard_emergency_carrier_area"
71+
<include layout="@layout/keyguard_eca"
7272
android:id="@+id/keyguard_selector_fade_container"
7373
android:layout_width="match_parent"
7474
android:layout_height="wrap_content"

core/res/res/layout/keyguard_password_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
android:layout_weight="1"
9494
/>
9595

96-
<include layout="@layout/keyguard_emergency_carrier_area"
96+
<include layout="@layout/keyguard_eca"
9797
android:id="@+id/keyguard_selector_fade_container"
9898
android:layout_width="match_parent"
9999
android:layout_height="wrap_content"

core/res/res/layout/keyguard_pattern_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
android:gravity="center"
6565
android:contentDescription="@string/keyguard_accessibility_pattern_area" />
6666
</FrameLayout>
67-
<include layout="@layout/keyguard_emergency_carrier_area"
67+
<include layout="@layout/keyguard_eca"
6868
android:id="@+id/keyguard_selector_fade_container"
6969
android:layout_width="match_parent"
7070
android:layout_height="wrap_content"

core/res/res/layout/keyguard_pin_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
/>
213213
</LinearLayout>
214214
</LinearLayout>
215-
<include layout="@layout/keyguard_emergency_carrier_area"
215+
<include layout="@layout/keyguard_eca"
216216
android:id="@+id/keyguard_selector_fade_container"
217217
android:layout_width="match_parent"
218218
android:layout_height="wrap_content"

core/res/res/layout/keyguard_selector_view.xml

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

5454
<include layout="@layout/keyguard_glow_pad_container" />
5555

56-
<include layout="@layout/keyguard_emergency_carrier_area"
56+
<include layout="@layout/keyguard_eca"
5757
android:id="@+id/keyguard_selector_fade_container"
5858
android:layout_width="match_parent"
5959
android:layout_height="48dp"

core/res/res/layout/keyguard_sim_pin_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
</LinearLayout>
219219
</LinearLayout>
220220

221-
<include layout="@layout/keyguard_emergency_carrier_area"
221+
<include layout="@layout/keyguard_eca"
222222
android:id="@+id/keyguard_selector_fade_container"
223223
android:layout_width="match_parent"
224224
android:layout_height="wrap_content"

core/res/res/layout/keyguard_sim_puk_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
</LinearLayout>
220220
</LinearLayout>
221221

222-
<include layout="@layout/keyguard_emergency_carrier_area"
222+
<include layout="@layout/keyguard_eca"
223223
android:id="@+id/keyguard_selector_fade_container"
224224
android:layout_width="match_parent"
225225
android:layout_height="wrap_content"

core/res/res/values-land/alias.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/* //device/apps/common/assets/res/any/colors.xml
4+
**
5+
** Copyright 2012, The Android Open Source Project
6+
**
7+
** Licensed under the Apache License, Version 2.0 (the "License");
8+
** you may not use this file except in compliance with the License.
9+
** You may obtain a copy of the License at
10+
**
11+
** http://www.apache.org/licenses/LICENSE-2.0
12+
**
13+
** Unless required by applicable law or agreed to in writing, software
14+
** distributed under the License is distributed on an "AS IS" BASIS,
15+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
** See the License for the specific language governing permissions and
17+
** limitations under the License.
18+
*/
19+
-->
20+
<resources>
21+
<!-- Alias used to reference one of two possible layouts in keyguard. -->
22+
<item type="layout" name="keyguard_eca">@android:layout/keyguard_emergency_carrier_area_empty</item>
23+
</resources>

0 commit comments

Comments
 (0)