GifImageView icon indicating copy to clipboard operation
GifImageView copied to clipboard

Frame might still get updated after stopAnimation is called

Open eltos opened this issue 9 years ago • 0 comments

I am using the GifImageView in an Adapter where also static images can be set to the ImageView. So when stopping the Animation via clear() and setting a static image right afterwards via setImageBitmap(...), sometimes the static image is displayed only for an instant and is replaced by a frame of the previous set GIF almost immediately.

This might be a threading issue: I think the updateResults Runnable might get executed even after clear() was called on the View. For that, I would suggest checking for animating == true in the Runnable before updating the Bitmap.

eltos avatar Dec 28 '16 22:12 eltos