Merge "Avoid potential re-entry as a result of child mutation" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
462f29f77f
@@ -851,8 +851,8 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
|
|||||||
|
|
||||||
private Drawable prepareDrawable(Drawable child) {
|
private Drawable prepareDrawable(Drawable child) {
|
||||||
child.setLayoutDirection(mLayoutDirection);
|
child.setLayoutDirection(mLayoutDirection);
|
||||||
child.setCallback(mOwner);
|
|
||||||
child = child.mutate();
|
child = child.mutate();
|
||||||
|
child.setCallback(mOwner);
|
||||||
return child;
|
return child;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user