OTTAA-Project / OTTAAProject

Join us to create the first Augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
5 stars 2 forks source link

[Bug]: WindowManagerGlobal.java line 359 #159

Closed gonojuarez closed 1 year ago

gonojuarez commented 1 year ago

Contact Details

gonojuarez17@gmail.com

What happened?

This bug appears when the system tries to call the Toast message and was called before.

Version

6.7.x (Production)

Where are you seeing the problem on?

Android

Relevant log output

Fatal Exception: java.lang.IllegalStateException: View android.widget.LinearLayout{eded5d9 V.E...... ......ID 0,0-593,174 #7f0a03ac app:id/toast_layout_root} has already been added to the window manager.
       at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:359)
       at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95)
       at android.widget.Toast$TN.handleShow(Toast.java:514)
       at android.widget.Toast$TN$1.handleMessage(Toast.java:417)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7399)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:502)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)

Code of Conduct