Avoid potential re-entry as a result of child mutation

am: b46ba3b2b0

Change-Id: I173c513ba82776f96ad05d1a5356b481f75b1040
This commit is contained in:
Alan Viverette
2016-07-27 22:00:51 +00:00
committed by android-build-merger

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;
}