Merge "Update mCompatFrame in applyGravityAndUpdateFrame." into nyc-dev