wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.99k stars 1.32k forks source link

Crash report in 7.2: Can't create handler inside thread that has not called Looper.prepare() #5773

Closed mzorz closed 7 years ago

mzorz commented 7 years ago
Fatal Exception: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
       at android.os.Handler.<init>(Handler.java:200)
       at android.os.Handler.<init>(Handler.java:114)
       at android.widget.Toast$TN.<init>(Toast.java:362)
       at android.widget.Toast.<init>(Toast.java:109)
       at android.widget.Toast.makeText(Toast.java:276)
       at org.wordpress.android.util.ToastUtils.showToast(ToastUtils.java:31)
       at org.wordpress.android.util.ToastUtils.showToast(ToastUtils.java:23)
       at org.wordpress.android.ui.posts.EditPostActivity$6.run(EditPostActivity.java:1210)
       at java.lang.Thread.run(Thread.java:818)
aforcier commented 7 years ago

Fixed in #5774.