From 3f299e92551e79c95970b1250b18f22374391706 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Mon, 4 Apr 2022 00:22:02 -0700 Subject: Update `resize` settings: - Unlock resizing for the Godot Editor - Add an option to specify whether a game is resizeable for the Godot template --- platform/android/java_godot_io_wrapper.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform/android/java_godot_io_wrapper.cpp') 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() { -- cgit v1.2.3