Skip to content
Commit 98dd5315 authored by Evan Laird's avatar Evan Laird
Browse files

Rotation-invariant status bar layout calculator

This CL implements a handful of methods that enable us to pre-emptively
calculate the position of the status bar, taking into account
DisplayCutout and rounded corner content padding.

The status bar is very special in that it always sits at the top of the
device, and has a known height, only taking into account window insets
with regard to its content layout. Therefore it can be known in all
orientations what the positions will be before we get a chance to lay
out the views on a configuration change.

Still to do: use this to inform Window Manager APIs, and use this
information to rework the privacy dot view controller not to require a
late publication of the status bar location

Test: manual
Bug: 187973222
Change-Id: Ieeba175065c522a0616f109b3670b752faef7f2a
parent 3952307a
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