Fix the problem that the screen of the application does not rotation automatically.
[Title] Fix the problem that the screen of the application does not rotation automatically.
[Issue#] N/A
[Problem] It is not rotated automatically and the screen is not updated.
When you rotate to landscape mode, then the screen is updated and recovered.
[Cause] App is hidden and when the device is rotated, disregard to updateViewportSize.
[Solution] If app is hidden, defer to updateViewportSize.
Change-Id: Ifee20dfe5dde443ae9528701c221af2994a63e51