summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-11-20 18:32:37 -0800
committerRomain Guy <romainguy@google.com>2012-11-20 18:32:37 -0800
commitfa9b396dbc58990c729fecabbad9e74257bef556 (patch)
treef1643ffe7d42b5e111bd37ed101772161d02279d /graphics
parentdc3d76f246f21093ad1ad75dc451126f41b525d3 (diff)
downloadframeworks_base-fa9b396dbc58990c729fecabbad9e74257bef556.zip
frameworks_base-fa9b396dbc58990c729fecabbad9e74257bef556.tar.gz
frameworks_base-fa9b396dbc58990c729fecabbad9e74257bef556.tar.bz2
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
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/drawable/DrawableContainer.java2
1 files changed, 2 insertions, 0 deletions
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;