Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement safe area on android platform #34537

Closed
wants to merge 1 commit into from

Conversation

NoFr1ends
Copy link
Contributor

Implementing the OS.get_window_safe_area() method on android platform having Android 9 or later.
Before Android 9 there is no official way to get the safe area.

This changes the default behavior for Android 9 and later!
Without this merge Godot applications in landscape mode would letterbox the display cutout. After this PR Godot uses fullscreen again and the developers have to change their UI to respect the window safe area.
I thought about adding an option to allow the user to specify the layoutInDisplayCutoutMode and default that to the default value instead of LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES. Please give me feedback about this.


Feature Proposal: godotengine/godot-proposals#321
This also might fix #34466 depending on if the manufacture added this to the safe area.

@aaronfranke
Copy link
Member

@NoFr1ends Is this still desired? If so, it needs to be rebased on the latest master branch.

@NoFr1ends
Copy link
Contributor Author

I didn’t tracked the changes to the master branch in the recent time, but then the Vulcan branch got merged the Android build was broken and I couldn’t test it again that’s why I didn’t rebased it yet.
Is the Android build workable again?

@Calinou Calinou added this to the 4.0 milestone Jan 5, 2021
@mbrlabs
Copy link
Contributor

mbrlabs commented Feb 5, 2021

That feature got implemented in #43104, so this PR can probably be closed.

@Calinou
Copy link
Member

Calinou commented Feb 5, 2021

Closing per @mbrlabs' comment. Thanks for the contribution nonetheless!

@Calinou Calinou closed this Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show out of screen in full screen phone
4 participants