Merge "Properly layout InlineContentView" into rvc-dev am: 7f70f707b5 am: cb5de77e05

Change-Id: Ia0425edea66b0a5343a649be849bbfa79bc564a3
This commit is contained in:
TreeHugger Robot
2020-03-31 06:02:55 +00:00
committed by Automerger Merge Worker
2 changed files with 6 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ public class InlineContentView extends ViewGroup {
@Override
public void onLayout(boolean changed, int l, int t, int r, int b) {
mSurfaceView.layout(l, t, r, b);
mSurfaceView.layout(0, 0, getMeasuredWidth(), getMeasuredHeight());
}
/**

View File

@@ -45,6 +45,10 @@ import android.view.ViewGroup;
* under the hosting window which could be useful in some cases, e.g. animating transitions.
* At this point the inlined content will not be interactive and the touch events would
* be delivered to your app.
* <p>
* Instances of this class are created by the platform and can be programmatically attached
* to your UI. Once you attach and detach this view it can not longer be reused and you
* should obtain a new view from the platform via the dedicated APIs.
*/
public class InlineContentView extends ViewGroup {
@@ -157,7 +161,7 @@ public class InlineContentView extends ViewGroup {
@Override
public void onLayout(boolean changed, int l, int t, int r, int b) {
mSurfaceView.layout(l, t, r, b);
mSurfaceView.layout(0, 0, getMeasuredWidth(), getMeasuredHeight());
}
/**