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
Used in ViewPager fragments randomly crashes the app (NullPointerException: Attempt to invoke virtual method void View.sendAccessibilityEventUnchecked)
#6
I think I've found a solution: using runOnUiThread in the following class (changes were added, you can compare it to your own class, I didn't want to fork/do a pull request just for that .......... also, you can find a bit more info in my Stackoverlow Question, which I linked above):
Hello,
I am using your library in a project. I am facing an issue that makes the app randomly crash when your library is used within a fragment within a
ViewPager
. I have isolated the part of the library that leads to the bug. Full minimal and executable sources and more informations are available in this StackOverflow question: https://stackoverflow.com/questions/61061130/textview-in-viewpager-fragments-randomly-crashes-the-app-nullpointerexception-a .Could you please take a look at this?
I thank you in advance,
Best regards,
Edit
I think I've found a solution: using
runOnUiThread
in the following class (changes were added, you can compare it to your own class, I didn't want to fork/do a pull request just for that .......... also, you can find a bit more info in my Stackoverlow Question, which I linked above):The text was updated successfully, but these errors were encountered: