Send public types while showing or aborting transient bars
The sources with the same pulic type should be controlled together. So we can just use public types to indicate which types of transient bars are shown or aborted. This CL also fixes bugs related to transient bars: - Incorrect window layout after aborting transient bar. The transient state affects the window layout, but we didn't relayout after aborting it. - Hiding taskbar won't trigger immersive mode confirmation. We only checked the visibility change of ITYPE_NAVIGATION_BAR before this CL, instead of all the sources with WindowInsets.Type#navigationbars(). - Transient taskbar won't show after performing the panic gesture. The reason is the same as the second bug above. Fix: 265396491 Fix: 265394635 Fix: 265394625 Bug: 234093736 Test: atest CommandQueueTest InsetsPolicyTest InsetsStateControllerTest RegisterStatusBarResultTest Change-Id: Ib150826402d281de1aedf98336d05010496842c0
Loading
Please register or sign in to comment