Cancel unfold animation when rotation changes
In DeviceFoldStateProvider.kt, FOLD_UPDATE_FINISH_HALF_OPEN is emitted if the rotation changes while the animation is in progress. This targets the case when the device goes to tabletop mode during the transition. + Using RotationChangeProvider to fix problems when the new orientation change was received in a background thread unexpectedly. This fixes: (1) wrong launcher icons movement after the rotation, and (2) wrong dark overlay scrim after rotation. + Minor formattig fixes by ktfmt Bug: 241743859 Test: DeviceFoldStateProviderTest && NaturalRotationUnfoldProgressProviderTest && manual stress testing Change-Id: I0ff6a823709e0891a7bcd13528a0e160d6f39c98
Loading
Please register or sign in to comment