You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
[Android 14] Fix GodotEditText white box showing during editor load
(cherry picked from commit 04798d6352)
This commit is contained in:
committed by
Rémi Verschelde
parent
c1d946e3fe
commit
89a614c380
@@ -37,6 +37,7 @@ import android.content.*
|
|||||||
import android.content.pm.PackageManager
|
import android.content.pm.PackageManager
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import android.content.res.Resources
|
import android.content.res.Resources
|
||||||
|
import android.graphics.Color
|
||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.hardware.Sensor
|
import android.hardware.Sensor
|
||||||
import android.hardware.SensorEvent
|
import android.hardware.SensorEvent
|
||||||
@@ -376,6 +377,8 @@ class Godot(private val context: Context) : SensorEventListener {
|
|||||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
activity.resources.getDimension(R.dimen.text_edit_height).toInt()
|
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
|
// ...add to FrameLayout
|
||||||
containerLayout?.addView(editText)
|
containerLayout?.addView(editText)
|
||||||
renderView = if (usesVulkan()) {
|
renderView = if (usesVulkan()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user