@Override
    public int getOpacity() {
        // We can't tell, so default to transparent to be safe.
        return PixelFormat.TRANSPARENT;
    }
Clears temporary data and resets the drawable back to the first frame.
core/src/main/java/com/bumptech/glide/load/resource/gif/GifDrawable.java