FGA icon indicating copy to clipboard operation
FGA copied to clipboard

Gesture navigation game area mode

Open reconman opened this issue 2 years ago • 1 comments

Preparation

  • [X] No one has asked for this feature before in other issues (even the closed ones)

Describe the feature

Google Pixel and OnePlus users now have black bars in Gesture Navigation mode on Android 12.

The black bars even appear on custom ROMs, therefore it must be related to some global Android 12 changes.

If the phone is turned so the camera is on the left, the width of the black bars can be calculated as such: Left = notch + navigationBar / 2 Right = navigationBar / 2

FGO thinks that the notch and navigation bar are present, even though they're hidden automatically.

The new game area mode should handle the black bars automatically depending on the orientation.

reconman avatar Jul 25 '22 20:07 reconman

The main problem is measuring the navigation bar height while the navigation bar is turned off. Android will always return "48" pixels in that case, but the real value on my device is 132 pixels (44dp)

reconman avatar Jul 25 '22 21:07 reconman