Skip to content

wm: add configurable gesture navigation space - #1337

Open
Loukious wants to merge 1 commit into
crdroidandroid:16.0from
Loukious:feature/gesture-navbar-space
Open

wm: add configurable gesture navigation space#1337
Loukious wants to merge 1 commit into
crdroidandroid:16.0from
Loukious:feature/gesture-navbar-space

Conversation

@Loukious

Copy link
Copy Markdown
Contributor

Summary

Add configurable spacing for the gesture navigation bar.

The available modes are:

  • Default: preserve the device's standard navigation bar inset
  • Compact: use 50% of the standard inset
  • Minimal: reserve no navigation bar space

Implementation

The selected mode is applied in DisplayPolicy while processing
navigationBars() inset providers.

Handling the adjustment at the WindowManager level makes it independent of
the component providing the navigation inset, including the regular SystemUI
navigation bar and launcher-owned taskbars.

mandatorySystemGestures() remains unchanged, preserving swipe-up, Home and
Recents gestures.

The adjustment is only applied while gesture navigation is active, leaving
three-button navigation unchanged.

Allow users to reduce or remove the space reserved by the gesture navigation bar.

Apply the selected mode while DisplayPolicy processes navigationBars inset providers so the feature works with both SystemUI navigation bars and launcher-owned taskbars.

Keep mandatory system gesture insets unchanged so Home and Recents continue to work.

Compact uses 50 percent of the original navigation bar inset, while Minimal reports no navigation bar inset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants