Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. #101

Closed
ghost opened this issue Mar 23, 2015 · 1 comment
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Mar 23, 2015

SnackbarManager will, on occasion throw this error, regardless of whether or or not you wrap it in a try/catch.

Looks like this should be caught from within the Snackbar class

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7095)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:992)
at android.view.View.requestLayout(View.java:18477)
at android.view.View.requestLayout(View.java:18477)
at android.view.View.requestLayout(View.java:18477)
at android.view.ViewGroup.removeView(ViewGroup.java:4377)
at com.nispok.snackbar.Snackbar.a(Snackbar.java:721)
at com.nispok.snackbar.SnackbarManager.a(SnackbarManager.java:31)

@wmora
Copy link
Contributor

wmora commented Mar 23, 2015

Thanks, the SnackbarManager should always display a Snackbar on the main thread

@wmora wmora added the bug label Mar 23, 2015
@wmora wmora closed this as completed in 24967cc Mar 24, 2015
@wmora wmora added this to the 2.10.6 milestone Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant