Because onContextRectChanged happens after the surface creation thus, the window doesn't return the correct value when the surface gets created.
Because onContextRectChanged happens after the surface creation thus, the window doesn't return the correct value when the surface gets created.