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

Only the original thread that created a view hierarchy can touch its views #38

Closed
ionicsolve opened this issue Jan 28, 2020 · 1 comment

Comments

@ionicsolve
Copy link

this error occurs when generate pdf from view. I also tried runonuithread, new Handler(Looper.mainLooper) with runnable, but now work anything

@HendrixString
Copy link
Owner

@ionicsolve basically, only the main thread should inflate views and touch them,
thread safety for UI is not guaranteed in Android.
BUT, in this lib, there is a flag inflateOnMainThread or something like that,
use it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants