Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/file_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ while IFS= read -rd '' f; do
continue
elif [[ "$f" == *"build" ]]; then
continue
elif [[ "$f" == *".patch" ]]; then
continue
fi
# Ensure that files are UTF-8 formatted.
recode UTF-8 "$f" 2> /dev/null
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ jobs:
touch android/build/.gdignore
echo "${GODOT_VERSION}.${GODOT_RELEASE}" > android/.build_version

- name: Add splash_anim.xml and modified GodotApp.java file
- name: Add splash_anim.xml and patch GodotApp.java file
run: |
cd vectortouch
mkdir -p android/build/res/drawable
cp godot_only/splash_anim.xml android/build/res/drawable/splash_anim.xml
cp godot_only/GodotApp.java android/build/src/com/godot/game/GodotApp.java
patch "android/build/src/com/godot/game/GodotApp.java" "godot_only/GodotApp.patch"

- name: Export debug project
env:
Expand Down
92 changes: 0 additions & 92 deletions godot_only/GodotApp.java

This file was deleted.

40 changes: 40 additions & 0 deletions godot_only/GodotApp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
--- GodotAppOriginal.java 2025-08-02 16:51:43.415399621 +0530
+++ GodotApp.java 2025-08-02 12:41:12.176163024 +0530
@@ -34,6 +34,8 @@
import org.godotengine.godot.GodotActivity;

import android.os.Bundle;
+import android.os.Handler;
+import android.os.Looper;
import android.util.Log;

import androidx.activity.EdgeToEdge;
@@ -44,6 +46,7 @@
* Feel free to extend and modify this class for your custom logic.
*/
public class GodotApp extends GodotActivity {
+ private boolean isAppReady = false;
static {
// .NET libraries.
if (BuildConfig.FLAVOR.equals("mono")) {
@@ -66,9 +69,10 @@

@Override
public void onCreate(Bundle savedInstanceState) {
- SplashScreen.installSplashScreen(this);
+ SplashScreen splashScreen = SplashScreen.installSplashScreen(this);
EdgeToEdge.enable(this);
super.onCreate(savedInstanceState);
+ splashScreen.setKeepOnScreenCondition(() -> !isAppReady);
}

@Override
@@ -81,5 +85,8 @@
public void onGodotMainLoopStarted() {
super.onGodotMainLoopStarted();
runOnUiThread(updateImmersiveAndEdgeToEdgeModes);
+ new Handler(Looper.getMainLooper()).postDelayed(() -> {
+ isAppReady = true;
+ }, 300);
}
}