Set isInPictureInPictureMode and isInMultiWindowMode before dispatching callbacks

Sets the values for isInPictureInPictureMode and isInMultiWindowMode before
dispatching callbacks so that calls to isInPictureInPictureMode and
isInMultiWindowMode return the proper value.

Bug: 335678264
Test: verify (isInPictureInPictureMode == isInPictureInPictureMode()) == true
Change-Id: I4c8ede3c38c4638052b675d76c198fad7e4f517d
1 file changed