diff options
| author | 2014-02-10 08:58:32 -0800 | |
|---|---|---|
| committer | 2014-02-10 08:58:32 -0800 | |
| commit | af745f6df71d8be6da23d65cfa22489ff6f13e3a (patch) | |
| tree | 66646ea3916d1b650b164cf29ca216187ed2cf4d | |
| parent | 6366dcbd494afe20912a932bb18faf199e4a1c62 (diff) | |
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
| -rw-r--r-- | core/java/android/app/ActivityView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityView.java b/core/java/android/app/ActivityView.java index ad384898407e..8acd19beea01 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 |