Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 742227ca authored by Patrick Williams's avatar Patrick Williams
Browse files

Set MediaController floating window token.

This enables using MediaController within SurfaceControlViewHost embedded view.

Bug: 256993334
Test: presubmits
Change-Id: I68a65f147efe1f18fbafa7bee9bb8f440aa18bb3
parent b6bb3b65
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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