Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Proper way to abort animation

$
0
0

My home screen has an animation. On Android, if I press the Back button and kill the app and open it again, it will crash. I noticed that this is due to my animation. To fix this, I handled OnDisappearing to stop the animation like so grid.AbortAnimation(animationName). This seems to work, but it doesn't work all the time. If I kill the app and immediately run it again, it will still crash. Looks like Android takes its time.

Is there a proper way to abort the animation? - otherwise I'm thinking of removing it since this is an annoying bug.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>