diff options
| author | 2023-06-30 17:43:38 -0400 | |
|---|---|---|
| committer | 2023-07-05 11:43:26 -0400 | |
| commit | 62a8d73e6c0b9875cda41a6062b62ff80d223172 (patch) | |
| tree | f4780eeb34121278836b63b1f867f84256724486 /libs/androidfw/BackupData.cpp | |
| parent | b1aa946049df2787f4d47244c3298016129d45b5 (diff) | |
[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
Diffstat (limited to 'libs/androidfw/BackupData.cpp')
0 files changed, 0 insertions, 0 deletions