Fixes transition animation with different orientations, fixes shifted view when app enters foreground after supsonesion with different orientation