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

Skip to content
Commit 203e005a authored by Tiger Huang's avatar Tiger Huang
Browse files

Check the transient state by using public types

Previously, we only checked if ITYPE_STATUS_BAR or ITYPE_NAVIGATION_BAR
is showing transiently or not when deciding the control target. There
could be an issue if the system doesn't have ITYPE_NAVIGATION_BAR but
has ITYPE_EXTRA_NAVIGATION_BAR. When that happens, mDummyControlTarget
in InsetsPolicy cannot be the navigation control target, so it cannot
show the transient bar.

This CL uses public types to decide the control target in transient
mode.

Bug: 198193735
Test: 1. Enable task bar from DeviceProfile.
      2. Set smallest width to 600 dp from developer options.
      3. Open an app which hides all system bars in sticky-immersive
         mode.
      4. Swipe from top and see if task bar is visible.
Change-Id: Id0a0b60831e11e32fbeac93330144535ed7cb416
parent 4fba1c44
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