Skip to content
Commit e9169bd5 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

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
parent 894c5d3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment