OSDN Git Service

Force refresh of stateful when a child drawable is changed.
authorCraig Stout <cstout@google.com>
Thu, 27 Mar 2014 22:14:38 +0000 (15:14 -0700)
committerCraig Stout <cstout@google.com>
Thu, 27 Mar 2014 22:19:44 +0000 (15:19 -0700)
Change-Id: Ie17d4c8bceae385e597f3006fcd456be9ef53b97

graphics/java/android/graphics/drawable/LayerDrawable.java

index 81cc11b..2ea9b8e 100644 (file)
@@ -295,6 +295,7 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {
                     drawable.setCallback(this);
                 }
                 layers[i].mDrawable = drawable;
+                mLayerState.mHaveStateful = false;
                 return true;
             }
         }