From da8b468074c640ac31d0fbb42d8ecde0f4391761 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Fri, 16 Dec 2022 10:49:28 -0800 Subject: [PATCH] Add boot splash for the Godot Android Editor --- main/main.cpp | 2 +- platform/android/java/editor/src/main/AndroidManifest.xml | 8 +++----- .../android/java/editor/src/main/res/values/themes.xml | 5 +++++ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 platform/android/java/editor/src/main/res/values/themes.xml diff --git a/main/main.cpp b/main/main.cpp index 1a005583afc..7e1fd38e148 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2121,7 +2121,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) { MAIN_PRINT("Main: Setup Logo"); -#if defined(WEB_ENABLED) || defined(ANDROID_ENABLED) +#if !defined(TOOLS_ENABLED) && (defined(WEB_ENABLED) || defined(ANDROID_ENABLED)) bool show_logo = false; #else bool show_logo = true; diff --git a/platform/android/java/editor/src/main/AndroidManifest.xml b/platform/android/java/editor/src/main/AndroidManifest.xml index f3ddaafd0ec..80ef10b6a4b 100644 --- a/platform/android/java/editor/src/main/AndroidManifest.xml +++ b/platform/android/java/editor/src/main/AndroidManifest.xml @@ -27,6 +27,7 @@ android:icon="@mipmap/icon" android:label="@string/godot_editor_name_string" tools:ignore="GoogleAppIndexingWarning" + android:theme="@style/GodotEditorTheme" android:requestLegacyExternalStorage="true"> + android:exported="false"> @@ -66,8 +65,7 @@ android:process=":GodotGame" android:launchMode="singleTask" android:exported="false" - android:screenOrientation="userLandscape" - android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"> + android:screenOrientation="userLandscape"> diff --git a/platform/android/java/editor/src/main/res/values/themes.xml b/platform/android/java/editor/src/main/res/values/themes.xml new file mode 100644 index 00000000000..fda04d6dc7d --- /dev/null +++ b/platform/android/java/editor/src/main/res/values/themes.xml @@ -0,0 +1,5 @@ + + + +