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

Skip to content
Commit 341c3fb8 authored by Nick Chameyev's avatar Nick Chameyev
Browse files

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
parent 0d5f2aed
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