Merge "Implement missing jumpToCurrentState() in LayerDrawable"
diff --git a/graphics/java/android/graphics/drawable/LayerDrawable.java b/graphics/java/android/graphics/drawable/LayerDrawable.java
index d9469d4..1a0ba6f 100644
--- a/graphics/java/android/graphics/drawable/LayerDrawable.java
+++ b/graphics/java/android/graphics/drawable/LayerDrawable.java
@@ -1366,6 +1366,14 @@
}
@Override
+ public void jumpToCurrentState() {
+ final ChildDrawable[] children = mLayerState.mChildren;
+ for (int i = 0, count = mLayerState.mNum; i < count; i++) {
+ children[i].mDrawable.jumpToCurrentState();
+ }
+ }
+
+ @Override
public boolean isStateful() {
return mLayerState.isStateful();
}