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

Commit bcd50a7c authored by Deepanshu Gupta's avatar Deepanshu Gupta Committed by Android Git Automerger
Browse files

am 5712b5fc: Optimize layout rendering in layoutlib [DO NOT MERGE]

* commit '5712b5fc':
  Optimize layout rendering in layoutlib [DO NOT MERGE]
parents 7c02c6e2 5712b5fc
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -335,7 +335,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> {
                backgroundView = backgroundLayout;
                backgroundView = backgroundLayout;
                backgroundLayout.setOrientation(LinearLayout.VERTICAL);
                backgroundLayout.setOrientation(LinearLayout.VERTICAL);
                LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
                LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
                        LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
                        LayoutParams.MATCH_PARENT, 0);
                layoutParams.weight = 1;
                layoutParams.weight = 1;
                backgroundLayout.setLayoutParams(layoutParams);
                backgroundLayout.setLayoutParams(layoutParams);
                topLayout.addView(backgroundLayout);
                topLayout.addView(backgroundLayout);
@@ -370,7 +370,7 @@ public class RenderSessionImpl extends RenderAction<SessionParams> {
                // content frame
                // content frame
                mContentRoot = new FrameLayout(context);
                mContentRoot = new FrameLayout(context);
                layoutParams = new LinearLayout.LayoutParams(
                layoutParams = new LinearLayout.LayoutParams(
                        LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
                        LayoutParams.MATCH_PARENT, 0);
                layoutParams.weight = 1;
                layoutParams.weight = 1;
                mContentRoot.setLayoutParams(layoutParams);
                mContentRoot.setLayoutParams(layoutParams);
                backgroundLayout.addView(mContentRoot);
                backgroundLayout.addView(mContentRoot);