Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e2ec1cc authored by Alan Viverette's avatar Alan Viverette
Browse files

Avoid bug in LinearLayout measurement

Reverts to Holo-style layout where the View divider masks the bug.
Uses a 0-height divider to avoid visual changes.

Bug: 19201079
Change-Id: Ib9e701815c57b23d5ba7173f8de553e90e27ed11
parent 45446c63
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@ This is a custom layout for a dialog.
        android:layout_weight="0"
        android:gravity="center_vertical|start"
        style="?attr/windowTitleBackgroundStyle" />
    <View android:layout_width="match_parent"
        android:layout_height="0dp" />
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
+3 −0
Original line number Diff line number Diff line
@@ -48,6 +48,9 @@ enabled.
            android:layout_marginStart="8dip" />
    </LinearLayout>

    <View android:layout_width="match_parent"
        android:layout_height="0dp" />

    <FrameLayout
        android:layout_width="match_parent" android:layout_height="wrap_content"
        android:layout_weight="1"
+2 −0
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@ enabled.
        android:paddingStart="?attr/dialogPreferredPadding"
        android:paddingEnd="?attr/dialogPreferredPadding"
        android:paddingTop="@dimen/dialog_padding_top_material" />
    <View android:layout_width="match_parent"
        android:layout_height="0dp" />
    <FrameLayout
        android:layout_width="match_parent" android:layout_height="wrap_content"
        android:layout_weight="1"