Merge "Set isInPictureInPictureMode and isInMultiWindowMode before dispatching callbacks" into main