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

Commit 026ed0f9 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Make sure that a drawable replacing a layer in a LayerDrawable gets a callback."

parents f486ccb7 79a63f7d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -265,6 +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);
        
        for (int i = mLayerState.mNum - 1; i >= 0; i--) {
            if (layers[i].mId == id) {