Skip to content

Commit fa9b396

Browse files
author
Romain Guy
committed
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
1 parent dc3d76f commit fa9b396

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphics/java/android/graphics/drawable/DrawableContainer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ public abstract static class DrawableContainerState extends ConstantState {
491491
mComputedConstantSize = orig.mComputedConstantSize;
492492
mConstantWidth = orig.mConstantWidth;
493493
mConstantHeight = orig.mConstantHeight;
494+
mConstantMinimumWidth = orig.mConstantMinimumWidth;
495+
mConstantMinimumHeight = orig.mConstantMinimumHeight;
494496

495497
mOpacity = orig.mOpacity;
496498
mHaveStateful = orig.mHaveStateful;

0 commit comments

Comments
 (0)