diff options
| author | 2022-02-15 17:22:22 +0000 | |
|---|---|---|
| committer | 2022-02-16 11:36:32 +0000 | |
| commit | 341c3fb8cf5e0b8443a4d49b9a50920038d42abd (patch) | |
| tree | 87fd5f43cf5d163c4ab6e5b7afbe4ad9fb188bde /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 0d5f2aedf384e685f844bdcc836282a94e098d5a (diff) | |
Hide navigation bar view immediately when folding to AOD
This CL addresses two problems with navbar visibility
when folding a foldable device to AOD:
* Hiding of navbar insets sometimes doesn't work when
calling hide() immediately after creation of a window
because of a race in insets controller.
As a workaround added applying visibility to the
view itself when doing the fold to AOD animation.
* Navigation bar creation happens in onConfigChange
of SysUI and it is not synchronized with starting
doze mode event from DozeService. So sometimes
we skipped hiding the navbar because it hasn't been
created yet at the moment when we started dozing.
To avoid this issue added applying of the initial
visibility to navigation bar when creating.
Bug: 202844967
Test: aod enabled, fold => navbar is not visible
Test: aod enabled, fold, turn on => navbar is visible
Test: lock/unlock using power button when aod enabled/disabled
Change-Id: I2773e1eb4221e1a97860478b2d772b91803e6bf5
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions