Merge "ToggleButton could keep a reference to a previous drawable"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user