Update insets position after rotation change is done

Otherwise because getWindowFrameSurfacePosition returns old position
before the display rotation transform is applied, if the position
doesn't update after the transform is done, it will show old position
in new rotation around a few frames. Such as the handle of navigation
bar may be flickering at screen center.

Bug: 338091119
Test: atest TransitionTests#testAppTransitionWithRotationChange

Merged-In: I21a0f10d4c83b6e7137ea0b389f2bbe1a4c82c2f
Change-Id: I21a0f10d4c83b6e7137ea0b389f2bbe1a4c82c2f
(cherry picked from commit a1d5520a09ed346a8047584e582c714901db4bc8)
3 files changed