Avoid potential re-entry as a result of child mutation

am: 66b3a0d1aa

Change-Id: Ia4ece22b06ef087921e8c341ec7112fd271598f2
This commit is contained in:
Alan Viverette
2016-08-24 17:37: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;
}