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

Commit aa1c88de authored by Romain Guy's avatar Romain Guy
Browse files

ToggleButton could keep a reference to a previous drawable

Change-Id: Ic19a8e86c61b58926504daf35f0de41358a899b4
parent 31c272ae
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -138,6 +138,8 @@ public class ToggleButton extends CompoundButton {
            LayerDrawable layerDrawable = (LayerDrawable) backgroundDrawable;
            mIndicatorDrawable =
                    layerDrawable.findDrawableByLayerId(com.android.internal.R.id.toggle);
        } else {
            mIndicatorDrawable = null;
        }
    }