Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 461f259f authored by axfordjc's avatar axfordjc
Browse files

Pattern bouncer refactor: motion layout - change constraints on rotate

- refactored Pattern bouncer into a single motion layout
- transition between landscape or portrait constrains on rotate

why are we doing this?
- to add support for landscape bouncers on small screens

"Split" bouncer constraints (https://hsv.googleplex.com/5351602346000384) will be used on small landscape screens only

"Single" bouncer constraints (https://hsv.googleplex.com/6007067992129536) are used otherwise, such as for large screen port/land and small screens port - this is the same as the previous behaviour.

Use of "split or single" bouncer constraints is not strictly related to device orientation.

Flag:
WHEN FLAG OFF - old portrait layout always used
WHEN FLAG ON - new layout uses, constraints updated to match current orientation (once per rotate, once on device posture change, and once after inflate)

Bug: 293252410
Bug: 296567469
Bug: 297863911

Test: KeyguardPatternViewControllerTest
Change-Id: If57b60482377eaf9ac3131fff9a136c92af67da0
parent 3544524b
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