GifImageView
GifImageView copied to clipboard
Frame might still get updated after stopAnimation is called
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.