Set MediaController floating window token.
This enables using MediaController within SurfaceControlViewHost embedded view. Bug: 256993334 Test: presubmits Change-Id: I68a65f147efe1f18fbafa7bee9bb8f440aa18bb3
This commit is contained in:
@@ -218,6 +218,7 @@ public class MediaController extends FrameLayout {
|
||||
p.width = mAnchor.getWidth();
|
||||
p.x = anchorPos[0] + (mAnchor.getWidth() - p.width) / 2;
|
||||
p.y = anchorPos[1] + mAnchor.getHeight() - mDecor.getMeasuredHeight();
|
||||
p.token = mAnchor.getWindowToken();
|
||||
}
|
||||
|
||||
// This is called whenever mAnchor's layout bound changes
|
||||
|
||||
Reference in New Issue
Block a user