You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#7004 seems to have introduced a bug that crashed apps on startup that don't use default libGDX View due to the following ClassCastException.
java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.FrameLayout
at com.badlogic.gdx.backends.android.DefaultAndroidInput.createDefaultEditText(DefaultAndroidInput.java:762)
at com.badlogic.gdx.backends.android.DefaultAndroidInput.access$100(DefaultAndroidInput.java:71)
at com.badlogic.gdx.backends.android.DefaultAndroidInput$3.run(DefaultAndroidInput.java:209)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
The error comes from the following libGDX snippet on DefaultAndroidInput:
in which it assumes the view uses a FrameLayout but that may not be the case.
Can reproduce on 1.12.2-SNAPSHOT by initializing a game with custom layout such as this one that uses RelativeLayout with 2 Views or anything other than a FrameLayout:
#7004 seems to have introduced a bug that crashed apps on startup that don't use default libGDX View due to the following
ClassCastException
.The error comes from the following libGDX snippet on
DefaultAndroidInput
:in which it assumes the view uses a
FrameLayout
but that may not be the case.Can reproduce on 1.12.2-SNAPSHOT by initializing a game with custom layout such as this one that uses
RelativeLayout
with 2 Views or anything other than aFrameLayout
:Pinging @Berstanio
The text was updated successfully, but these errors were encountered: