aurelhubert / aurelhubert/ahbottomnavigation
Animators may only be run on Looper threads Exception when displaying icon on Bottom Navigation
- Dominant language
- Java
- Stars
- 3.8k
- Forks
- 672
- PR merge metrics
- No merged PRs in 30d
Description
```
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in AHBottomNavigation.java at updateNotifications (line 975), then follow the createClassicItems, createItems, and enableItemAtPosition calls shown in the stack trace. Reproduce the crash while displaying an icon on the cart item and determine which thread invokes the animation. Done means the notification update no longer raises the Looper-thread exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100