summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib/src
diff options
context:
space:
mode:
authorBZ1234567890 <blaz.ziherl@gmail.com>2024-02-15 00:58:03 +0100
committerBZ1234567890 <blaz.ziherl@gmail.com>2024-02-15 01:06:18 +0100
commit04798d6352a7d5d5cc19f7e06370c6af0c8073fd (patch)
tree42732c25f764e7230709abd6d40e470379c71fb6 /platform/android/java/lib/src
parent907db8eebcecb97d527edcaff77a1c87a6c068f5 (diff)
downloadredot-engine-04798d6352a7d5d5cc19f7e06370c6af0c8073fd.tar.gz
[Android 14] Fix GodotEditText white box showing during editor load
Diffstat (limited to 'platform/android/java/lib/src')
-rw-r--r--platform/android/java/lib/src/org/godotengine/godot/Godot.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt
index a0e020b55e..e2e77e7796 100644
--- a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt
+++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt
@@ -37,6 +37,7 @@ import android.content.*
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.content.res.Resources
+import android.graphics.Color
import android.graphics.Rect
import android.hardware.Sensor
import android.hardware.SensorEvent
@@ -379,6 +380,8 @@ class Godot(private val context: Context) : SensorEventListener {
ViewGroup.LayoutParams.MATCH_PARENT,
activity.resources.getDimension(R.dimen.text_edit_height).toInt()
)
+ // Prevent GodotEditText from showing on splash screen on devices with Android 14 or newer.
+ editText.setBackgroundColor(Color.TRANSPARENT)
// ...add to FrameLayout
containerLayout?.addView(editText)
renderView = if (usesVulkan()) {