Set a layered drawable's child callback to be the container.
Change-Id: I959ad03883931d727d464f384073926e8fa9e2d2
This commit is contained in:
@@ -265,7 +265,7 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {
|
||||
*/
|
||||
public boolean setDrawableByLayerId(int id, Drawable drawable) {
|
||||
final ChildDrawable[] layers = mLayerState.mChildren;
|
||||
if (drawable != null) drawable.setCallback(mCallback);
|
||||
drawable.setCallback(this);
|
||||
|
||||
for (int i = mLayerState.mNum - 1; i >= 0; i--) {
|
||||
if (layers[i].mId == id) {
|
||||
|
||||
Reference in New Issue
Block a user