Change the OpenGL viewport when new layout params are used.
Bug #3303158
Change-Id: Id0b8667b262c218ead5feeb5df2c3a256f522bed
diff --git a/core/java/android/view/ViewRoot.java b/core/java/android/view/ViewRoot.java
index 5d81702..9b897eb 100644
--- a/core/java/android/view/ViewRoot.java
+++ b/core/java/android/view/ViewRoot.java
@@ -1104,7 +1104,7 @@
}
}
- if (hwInitialized || (windowShouldResize &&
+ if (hwInitialized || ((windowShouldResize || params != null) &&
mAttachInfo.mHardwareRenderer != null &&
mAttachInfo.mHardwareRenderer.isEnabled())) {
mAttachInfo.mHardwareRenderer.setup(mWidth, mHeight);