8bitPit / Niagara-Issues

A place to submit feature requests and bug reports for Niagara Launcher, a modern + minimalist Android home screen optimized for one-✋ access and staying focused.
http://niagaralauncher.app
831 stars 39 forks source link

Navigation gestures / bar ignore `requestedOrientation` #2383

Open sebastinto opened 12 months ago

sebastinto commented 12 months ago

Describe the bug

When using Activity.setRequestedOrientation() in a third-party app to lock orientation in portrait or landscape orientation, the navigation gesture bar will ignore orientation changes when Niagara Launcher is the default launcher.

In other words, when the app UI is in landscape mode but the navigation bar being positioned at the short right edge of the screen while it should be at the long bottom edge of the screen. This also breaks navigation gestures.

Switching back to the Pixel Launcher fixes the issue.

Steps to reproduce

  1. Activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER or Activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
  2. Activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
  3. nav bar does not reflect new orientation

Does the issue also occur with other 3rd-party launchers?

Problem doesn't occur with other launchers

Other 3rd-party launcher(s) tested

Pixel Launcher

Device name

Google Pixel 7 Pro

Android version

Android 13

Screenshots / Screen recordings

No response

sebastinto commented 11 months ago

Further observations:

This definitely strongly suggests Niagara as being the source of the issue.

Kind of weird that it's only affecting the navigation bar and not the entire UI too. The issue does not occur when using the 3-button navigation mode.