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
Loading
Please register or sign in to comment