aurelhubert / ahbottomnavigation

A library to reproduce the behavior of the Bottom Navigation guidelines from Material Design.
3.84k stars 683 forks source link

Animators may only be run on Looper threads Exception when displaying icon on Bottom Navigation #428

Open egek92 opened 3 years ago

egek92 commented 3 years ago
Fatal Exception: android.util.AndroidRuntimeException
Animators may only be run on Looper threads
android.animation.ValueAnimator.start (ValueAnimator.java:1011)
android.view.ViewPropertyAnimator.start (ViewPropertyAnimator.java:416)
com.aurelhubert.ahbottomnavigation.AHBottomNavigation.updateNotifications (AHBottomNavigation.java:975)
com.aurelhubert.ahbottomnavigation.AHBottomNavigation.createClassicItems (AHBottomNavigation.java:489)
com.aurelhubert.ahbottomnavigation.AHBottomNavigation.createItems (AHBottomNavigation.java:282)
com.aurelhubert.ahbottomnavigation.AHBottomNavigation.enableItemAtPosition (AHBottomNavigation.java:1619)

this crash randomly happened while we display an icon on top cart icon of bottom nav