1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Enable configuration of the android:excludeFromRecents activity attribute.

(cherry picked from commit cfa81ff32a)
This commit is contained in:
Fredia Huya-Kouadio
2021-12-09 08:49:32 -08:00
committed by Rémi Verschelde
parent 0ed8be946f
commit 605502a0d2
3 changed files with 10 additions and 1 deletions

View File

@@ -253,8 +253,10 @@ String _get_activity_tag(const Ref<EditorExportPreset> &p_preset) {
OS::get_singleton()->get_screen_orientation_from_string(GLOBAL_GET("display/window/handheld/orientation")));
String manifest_activity_text = vformat(
" <activity android:name=\"com.godot.game.GodotApp\" "
"tools:replace=\"android:screenOrientation\" "
"tools:replace=\"android:screenOrientation,android:excludeFromRecents\" "
"android:excludeFromRecents=\"%s\" "
"android:screenOrientation=\"%s\">\n",
bool_to_string(p_preset->get("package/exclude_from_recents")),
orientation);
if (uses_xr) {
manifest_activity_text += " <meta-data tools:node=\"replace\" android:name=\"com.oculus.vr.focusaware\" android:value=\"true\" />\n";