diff options
author | Alan Viverette <alanv@google.com> | 2015-02-26 20:53:38 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-02-26 20:53:39 +0000 |
commit | 5bc5d7c45f4a0f6e556200051b96b7870553b06f (patch) | |
tree | d8b06dd6c6bc7966c0ac0b022472716113ec6187 /graphics | |
parent | 14a92fe75d22757f03128e15eb6265c5427373bc (diff) | |
parent | 102a6bff77c618112762245dbd798c8d7f6d44ea (diff) | |
download | frameworks_base-5bc5d7c45f4a0f6e556200051b96b7870553b06f.zip frameworks_base-5bc5d7c45f4a0f6e556200051b96b7870553b06f.tar.gz frameworks_base-5bc5d7c45f4a0f6e556200051b96b7870553b06f.tar.bz2 |
Merge "Propagate original Resources to DrawableContainer if no override set"
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java | 2 | ||||
-rw-r--r-- | graphics/java/android/graphics/drawable/DrawableContainer.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java b/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java index 4af5946..2c603e2 100644 --- a/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java +++ b/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java @@ -594,7 +594,7 @@ public class AnimatedStateListDrawable extends StateListDrawable { mTransitions.append(keyToFrom, pos | REVERSED_BIT | reversibleBit); } - return addChild(anim); + return pos; } int addStateSet(@NonNull int[] stateSet, @NonNull Drawable drawable, int id) { diff --git a/graphics/java/android/graphics/drawable/DrawableContainer.java b/graphics/java/android/graphics/drawable/DrawableContainer.java index c4794d9..434134a 100644 --- a/graphics/java/android/graphics/drawable/DrawableContainer.java +++ b/graphics/java/android/graphics/drawable/DrawableContainer.java @@ -685,7 +685,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { DrawableContainerState(DrawableContainerState orig, DrawableContainer owner, Resources res) { mOwner = owner; - mRes = res; + mRes = res != null ? res : orig != null ? orig.mRes : null; if (orig != null) { mChangingConfigurations = orig.mChangingConfigurations; |