Skip to content

Commit ce3e948

Browse files
author
Jim Miller
committed
Fix keyguard landscape layout on phones
This particular layout didn't have layout_height specified, which is undefined. However, the undefined behavior seems to have changed on the platform to one where this layout no longer works. Not specifying layout_height causes the security area view to be 0 pixels wide, effectively ignoring layout_weight. Fixes bug 7283261 Change-Id: I0e3d156e9b2d7ef1492dec9791f0e241e8cd7fe6
1 parent ab781ba commit ce3e948

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/res/res/layout-land/keyguard_host_view.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
<include layout="@layout/keyguard_widget_region"
3131
android:layout_width="0dp"
32+
android:layout_height="match_parent"
3233
android:layout_weight=".45" />
3334

3435
<com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper

0 commit comments

Comments
 (0)