diff options
author | Tiger Huang <tigerhuang@google.com> | 2021-03-25 21:13:28 +0800 |
---|---|---|
committer | Tiger Huang <tigerhuang@google.com> | 2021-04-19 23:36:55 +0800 |
commit | 44a65980e19964f3cd0cac01f31d042db91b507d (patch) | |
tree | 4651405a626c2c787b592325185cb3a7c89f0ae9 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 1628ab397efc4ab536de5eaa19466c05b251aab3 (diff) |
Refine isLightBarAllowed
The light bar is only allowed if the color-controlling window has
intersection with the system bar.
The app window frame doesn't need to 'contains' the frame of the bar,
because:
1. In split-screen mode, the app window only intersects a part of status
bar.
2. When navigation bar is at the same side of a display cutout,
navigation bar would be thicker than the cutout. The app window which
fits the cutout can only intersect with a part of navigation bar.
Fix: 183696228
Test: atest LetterboxTest LightBarTests DisplayPolicyTests
Change-Id: If17a2050b22e674bb760d6c98305ee69067b11fe
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions