Merge "Avoid potential re-entry as a result of child mutation" into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-08-24 17:27:07 +00:00
committed by Android (Google) Code Review

View File

@@ -851,8 +851,8 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
private Drawable prepareDrawable(Drawable child) {
child.setLayoutDirection(mLayoutDirection);
child.setCallback(mOwner);
child = child.mutate();
child.setCallback(mOwner);
return child;
}