diff options
author | Miranda Kephart <mkephart@google.com> | 2021-06-01 21:09:52 +0000 |
---|---|---|
committer | Miranda Kephart <mkephart@google.com> | 2021-06-09 13:58:07 +0000 |
commit | e9169bd526bd51f8c280355368f0dc4cc07be9a6 (patch) | |
tree | c347f98e3e3923e71e96de32b7988bdbd2ce5a06 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 894c5d3d73a47a9ba6bda27d14fca3e342ebc271 (diff) |
Fix handling of display cutout
Add margins around the static screenshot layout. We want the
preview/buttons/etc to respect display cutouts (so they aren't
covered), but the flash and the background scrim to display across
the entire screen. This change adds bounding margins and updates
their location when the orientation changes (since we want to move
"up/down" in portrait and "left/right" in landscape). This also
allows us to handle waterfall cutouts correctly.
Bug: 189853509
Fix: 189853509
Test: manual -- used developer settings to test possible cutouts in
portrait and landscape
Change-Id: Id12012bb3d4dacb948cecd819999e0c7d46bb37b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions