Closed vince-styling closed 1 year ago
I think you should not do that, as it could lead to memory leak. Typically, the callback will be the view or surface or something like that, that will live as long as its on screen. You don't want to retain the callback once the view has been disposed. So, you probably don't want to do that.
the Drawable#setCallback() saved the instance via WeakReference, that won't last much longer, after several GC, the instance probably drop, which cause the playback stop unexpectedly.
so I make it strong reference myself.