diff options
| author | 2021-07-13 15:38:03 -0400 | |
|---|---|---|
| committer | 2021-08-18 12:29:48 +0000 | |
| commit | bbd72ff3e5c71e82ff156b82eb0ecf93e9e22431 (patch) | |
| tree | 2bb3b0749a9e592766d5bc21b7fcd2342c49f08e /libs/input/SpriteController.cpp | |
| parent | ed8dd882dc91b9c1ed61c0fb70edf0a321b3489a (diff) | |
Offset ghost views by the containing view's location
Shared transitions weren't behaving correctly in some cases on
phones with display cutouts, because the locations of the shared
views are computed based on screen coordinates, but take place in
a decor view that may be inset by the display cutout (depending
on the target app's behavior around the cutout).
This change offsets the ghost views according to the location of
the decor view in the screen, so that all adjustments take place
in the same coordinate system.
Bug: 190757843
Test: manual (tested in screenshots, when the target app does and
does not get inset by the cutout)
Change-Id: Ia9c3b5f36136c8825c67ce645f6cbdd8e0126fdf
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions