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

Commit 112d8a36 authored by Diego Perez's avatar Diego Perez Committed by Android Git Automerger
Browse files

am d6f2a9ef: am 7720eb18: Merge "Render to measured size when using expand mode" into lmp-mr1-dev

* commit 'd6f2a9ef':
  Render to measured size when using expand mode
parents 86917496 d6f2a9ef
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -523,6 +523,11 @@ public class RenderSessionImpl extends RenderAction<SessionParams> {
                        if (neededWidth > measuredWidth) {
                        if (neededWidth > measuredWidth) {
                            mMeasuredScreenWidth += neededWidth - measuredWidth;
                            mMeasuredScreenWidth += neededWidth - measuredWidth;
                        }
                        }
                        if (mMeasuredScreenWidth < measuredWidth) {
                            // If the screen width is less than the exact measured width,
                            // expand to match.
                            mMeasuredScreenWidth = measuredWidth;
                        }
                    }
                    }


                    if (renderingMode.isVertExpand()) {
                    if (renderingMode.isVertExpand()) {
@@ -531,6 +536,11 @@ public class RenderSessionImpl extends RenderAction<SessionParams> {
                        if (neededHeight > measuredHeight) {
                        if (neededHeight > measuredHeight) {
                            mMeasuredScreenHeight += neededHeight - measuredHeight;
                            mMeasuredScreenHeight += neededHeight - measuredHeight;
                        }
                        }
                        if (mMeasuredScreenHeight < measuredHeight) {
                            // If the screen height is less than the exact measured height,
                            // expand to match.
                            mMeasuredScreenHeight = measuredHeight;
                        }
                    }
                    }
                }
                }
            }
            }
+79 B (598 B)

File changed.

No diff preview for this file type.

+636 B
Loading image diff...
+578 B
Loading image diff...
+15 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:padding="16dp"
              android:orientation="horizontal"
              android:background="#AAAAAA"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content">

    <include layout="@layout/expand_layout"
             android:layout_height="wrap_content"
             android:layout_width="wrap_content" />

</LinearLayout>
Loading