From af745f6df71d8be6da23d65cfa22489ff6f13e3a Mon Sep 17 00:00:00 2001 From: Griff Hazen Date: Mon, 10 Feb 2014 08:58:32 -0800 Subject: [PATCH] Fix ActivityView layout bug. Child TextureView should be positioned at origin of ActivityView, with matching width and height. Previously, a container's padding would be applied twice for example. Change-Id: Ie0be10614a45aede4207abf986721385d04d8c76 --- core/java/android/app/ActivityView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/app/ActivityView.java b/core/java/android/app/ActivityView.java index ad384898407ed..8acd19beea015 100644 --- a/core/java/android/app/ActivityView.java +++ b/core/java/android/app/ActivityView.java @@ -77,7 +77,7 @@ public class ActivityView extends ViewGroup { @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { - mTextureView.layout(l, t, r, b); + mTextureView.layout(0, 0, r - l, b - t); } @Override