Layout SurfaceView in parent frame.

We always want the SurfaceView to be layed out
relative to the parent frame, fixes multiple issues
in freeform mode.

Bug: 26689889
Change-Id: Ib4728a515dc01c6884363b68a29f2e4ce5d5babc
This commit is contained in:
Robert Carr
2016-01-20 13:35:43 -08:00
parent c1229a5b2b
commit d86c63a25e

View File

@@ -499,7 +499,8 @@ public class SurfaceView extends View {
mLayout.privateFlags |=
WindowManager.LayoutParams.PRIVATE_FLAG_COMPATIBLE_WINDOW;
}
mLayout.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION;
mLayout.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION
| WindowManager.LayoutParams.PRIVATE_FLAG_LAYOUT_CHILD_WINDOW_IN_PARENT_FRAME;
if (mWindow == null) {
Display display = getDisplay();