From fa9b396dbc58990c729fecabbad9e74257bef556 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 20 Nov 2012 18:32:37 -0800 Subject: Copy missing state in DrawableContainer The copy constructor of DrawableContainerState was not properly copying all the state. This change adds the missing two fields that should be copied over. Change-Id: Ic92ba17ccf8fb3c8cbb5ead18690287da21c48a4 --- graphics/java/android/graphics/drawable/DrawableContainer.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics') diff --git a/graphics/java/android/graphics/drawable/DrawableContainer.java b/graphics/java/android/graphics/drawable/DrawableContainer.java index 41b272d..8280d2d 100644 --- a/graphics/java/android/graphics/drawable/DrawableContainer.java +++ b/graphics/java/android/graphics/drawable/DrawableContainer.java @@ -491,6 +491,8 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { mComputedConstantSize = orig.mComputedConstantSize; mConstantWidth = orig.mConstantWidth; mConstantHeight = orig.mConstantHeight; + mConstantMinimumWidth = orig.mConstantMinimumWidth; + mConstantMinimumHeight = orig.mConstantMinimumHeight; mOpacity = orig.mOpacity; mHaveStateful = orig.mHaveStateful; -- cgit v1.1