diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-04-04 11:17:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 11:17:24 +0200 |
commit | 10d9e479491c25a350a8ed191987dd36ed43c073 (patch) | |
tree | 56c54dfc8053f2ad1e0125cd632dba19fdf9cb9c /platform/android/java_godot_io_wrapper.cpp | |
parent | 91d617718717d0ff1f00b477b8a128b694476756 (diff) | |
parent | 3f299e92551e79c95970b1250b18f22374391706 (diff) |
Merge pull request #59861 from m4gr3d/enable_resizable_main
Diffstat (limited to 'platform/android/java_godot_io_wrapper.cpp')
-rw-r--r-- | platform/android/java_godot_io_wrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/java_godot_io_wrapper.cpp b/platform/android/java_godot_io_wrapper.cpp index d6e3ad90b1..a5698f4efc 100644 --- a/platform/android/java_godot_io_wrapper.cpp +++ b/platform/android/java_godot_io_wrapper.cpp @@ -198,11 +198,14 @@ void GodotIOJavaWrapper::hide_vk() { } void GodotIOJavaWrapper::set_screen_orientation(int p_orient) { + // The Godot Android Editor sets its own orientation via its AndroidManifest +#ifndef TOOLS_ENABLED if (_set_screen_orientation) { JNIEnv *env = get_jni_env(); ERR_FAIL_COND(env == nullptr); env->CallVoidMethod(godot_io_instance, _set_screen_orientation, p_orient); } +#endif } int GodotIOJavaWrapper::get_screen_orientation() { |