Merge pull request #87689 from BZ1234567890/issue-87059-b3x
[3.x] [Android 14] Fix GodotEditText white box showing during game load
This commit is contained in:
commit
04670d05cc
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,7 @@ import android.content.pm.ConfigurationInfo;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.content.pm.PackageManager.NameNotFoundException;
|
import android.content.pm.PackageManager.NameNotFoundException;
|
||||||
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;
|
||||||
|
@ -385,6 +386,8 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
||||||
GodotEditText edittext = new GodotEditText(activity);
|
GodotEditText edittext = new GodotEditText(activity);
|
||||||
edittext.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT,
|
edittext.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT,
|
||||||
(int)getResources().getDimension(R.dimen.text_edit_height)));
|
(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
|
// ...add to FrameLayout
|
||||||
containerLayout.addView(edittext);
|
containerLayout.addView(edittext);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue