I noticed that in my build the random crash happens on line 243 inside addListener(). I also noticed that when the app crashes it appears random: I'll be using the app, changing screens and scrolling up and down and suddenly it crashes.
I wondered if the issue is the listener is leaking and needs to be canceled when the view is destroyed:
I don't know animations but I tried this fix and used the app a while and it didn't crash and the dancing Android is working. Perhaps someone can review if this fix would be appropriate?
I noticed that in my build the random crash happens on line 243 inside addListener(). I also noticed that when the app crashes it appears random: I'll be using the app, changing screens and scrolling up and down and suddenly it crashes.
I wondered if the issue is the listener is leaking and needs to be canceled when the view is destroyed:
https://developer.android.com/reference/android/animation/AnimatorSet.html#cancel()
I don't know animations but I tried this fix and used the app a while and it didn't crash and the dancing Android is working. Perhaps someone can review if this fix would be appropriate?