Restore fullscreen toggle menu for the Android editor and clean up the immersive mode logic #96208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While testing #94285, I noticed a couple things:
The diff was using an editor setting to enable immersive mode which required restarting the editor
Looking for a way to expose the new immersive mode logic in the editor, I found out that the editor has a
Toggle fullscreen
menu which was disabled for Android (by me :) ) when the Android editor was first releasedScreen_Recording_20240828_030935.mp4
Note:
DisplayServer#window_set_mode(...)
andDisplayServer#window_get_mode(....)
apis which means that game logic can also leverage the new functionality to query and toggle immersive mode at runtime on AndroidDisplayServer
apisSupersedes #94285