mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Fix GodotEditText white box showing during game load
This commit is contained in:
parent
786cf445ac
commit
1b6d3f3e6e
@ -59,6 +59,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;
|
||||||
@ -382,6 +383,8 @@ public class Pandemonium extends Fragment implements SensorEventListener, IDownl
|
|||||||
PandemoniumEditText edittext = new PandemoniumEditText(activity);
|
PandemoniumEditText edittext = new PandemoniumEditText(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 New Issue
Block a user