From 1065527ca74488e75330603e63f88c69febc4be8 Mon Sep 17 00:00:00 2001 From: BZ1234567890 Date: Sun, 28 Jan 2024 21:49:37 +0100 Subject: [PATCH] [3.x] [Android 14] Fix GodotEditText white box showing during game load --- platform/android/java/lib/src/org/godotengine/godot/Godot.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.java b/platform/android/java/lib/src/org/godotengine/godot/Godot.java index ac903cab5d0..13096fe9785 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.java @@ -60,6 +60,7 @@ import android.content.pm.ConfigurationInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import android.content.res.Resources; +import android.graphics.Color; import android.graphics.Rect; import android.hardware.Sensor; import android.hardware.SensorEvent; @@ -385,6 +386,8 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC GodotEditText edittext = new GodotEditText(activity); edittext.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, (int)getResources().getDimension(R.dimen.text_edit_height))); + // Prevent GodotEditText from showing on splash screen on devices with Android 14 or newer. + edittext.setBackgroundColor(Color.TRANSPARENT); // ...add to FrameLayout containerLayout.addView(edittext);