summaryrefslogtreecommitdiffstats
path: root/platform/android/export/gradle_export_util.cpp
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2022-04-04 00:22:02 -0700
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2022-04-04 01:02:10 -0700
commit3f299e92551e79c95970b1250b18f22374391706 (patch)
treed6d9d713cb0c30f099e0193cb0810041e66dbb82 /platform/android/export/gradle_export_util.cpp
parentc630c2001dbe2e25e0d372bd22ce85cdc2822eb0 (diff)
downloadredot-engine-3f299e92551e79c95970b1250b18f22374391706.tar.gz
Update `resize` settings:
- Unlock resizing for the Godot Editor - Add an option to specify whether a game is resizeable for the Godot template
Diffstat (limited to 'platform/android/export/gradle_export_util.cpp')
-rw-r--r--platform/android/export/gradle_export_util.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/platform/android/export/gradle_export_util.cpp b/platform/android/export/gradle_export_util.cpp
index ab915a5f85..c4cf82de6c 100644
--- a/platform/android/export/gradle_export_util.cpp
+++ b/platform/android/export/gradle_export_util.cpp
@@ -253,11 +253,13 @@ String _get_activity_tag(const Ref<EditorExportPreset> &p_preset) {
String orientation = _get_android_orientation_label(DisplayServer::ScreenOrientation(int(GLOBAL_GET("display/window/handheld/orientation"))));
String manifest_activity_text = vformat(
" <activity android:name=\"com.godot.game.GodotApp\" "
- "tools:replace=\"android:screenOrientation,android:excludeFromRecents\" "
+ "tools:replace=\"android:screenOrientation,android:excludeFromRecents,android:resizeableActivity\" "
"android:excludeFromRecents=\"%s\" "
- "android:screenOrientation=\"%s\">\n",
+ "android:screenOrientation=\"%s\" "
+ "android:resizeableActivity=\"%s\">\n",
bool_to_string(p_preset->get("package/exclude_from_recents")),
- orientation);
+ orientation,
+ bool_to_string(p_preset->get("screen/is_resizeable")));
if (uses_xr) {
manifest_activity_text += " <meta-data tools:node=\"replace\" android:name=\"com.oculus.vr.focusaware\" android:value=\"true\" />\n";
} else {