[Sb chip] Fix chip layout when fullscreen or rotating
When launching an activity from the ongoing call chip, we end up setting the StatusBar window to fullscreen for a few frames. This would cause SystemEventChipAnimationController to position the chip halfway down the display due to positioning the container view using CENTER_VERTICAL. While testing, I also discovered that any rotation that occurred during the animation would not be properly reflected. Opening the camera app while in landscape would sometimes not show the chip at all due to triggering a rotation AND a privacy event at the same time. The fix for this is to use the StatusBarContentInsetsChangedListener to re-solve for the animation rect bounds. Test: manual Test: SystemEventChipAnimationControllerTest Fixes: 289378932 Change-Id: I9f9909842999dd3c2cbd11c392223b7f213eff3a
Loading
Please register or sign in to comment