We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2fc457 commit a90739cCopy full SHA for a90739c
composition-avatar/src/main/java/cn/yiiguxing/compositionavatar/CompositionAvatarView.java
@@ -288,6 +288,10 @@ public Drawable removeDrawableAt(int index) {
288
*/
289
public void clearDrawable() {
290
if (!mDrawables.isEmpty()) {
291
+ for (AvatarDrawable drawable : mDrawables) {
292
+ drawable.mDrawable.setCallback(null);
293
+ unscheduleDrawable(drawable.mDrawable);
294
+ }
295
mDrawables.clear();
296
layoutDrawables();
297
}
0 commit comments