Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6430c943 authored by Romain Guy's avatar Romain Guy
Browse files

Set a layered drawable's child callback to be the container.

Change-Id: I959ad03883931d727d464f384073926e8fa9e2d2
parent 026ed0f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {