Loading graphics/java/android/graphics/drawable/DrawableContainer.java +7 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,13 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { } } @Override public void setHotspotBounds(int left, int top, int right, int bottom) { if (mCurrDrawable != null) { mCurrDrawable.setHotspotBounds(left, top, right, bottom); } } @Override protected boolean onStateChange(int[] state) { if (mLastDrawable != null) { Loading graphics/java/android/graphics/drawable/InsetDrawable.java +5 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,11 @@ public class InsetDrawable extends Drawable implements Drawable.Callback mInsetState.mDrawable.setHotspot(x, y); } @Override public void setHotspotBounds(int left, int top, int right, int bottom) { mInsetState.mDrawable.setHotspotBounds(left, top, right, bottom); } @Override public boolean setVisible(boolean visible, boolean restart) { mInsetState.mDrawable.setVisible(visible, restart); Loading graphics/java/android/graphics/drawable/LayerDrawable.java +9 −0 Original line number Diff line number Diff line Loading @@ -570,6 +570,15 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { } } @Override public void setHotspotBounds(int left, int top, int right, int bottom) { final ChildDrawable[] array = mLayerState.mChildren; final int N = mLayerState.mNum; for (int i = 0; i < N; i++) { array[i].mDrawable.setHotspotBounds(left, top, right, bottom); } } @Override public boolean setVisible(boolean visible, boolean restart) { final boolean changed = super.setVisible(visible, restart); Loading graphics/java/android/graphics/drawable/RippleDrawable.java +0 −3 Original line number Diff line number Diff line Loading @@ -460,9 +460,6 @@ public class RippleDrawable extends LayerDrawable { invalidateSelf(); } /** * @hide */ @Override public void setHotspotBounds(int left, int top, int right, int bottom) { mOverrideBounds = true; Loading graphics/java/android/graphics/drawable/Drawable.java +1 −1 File changed.Contains only whitespace changes. Show changes Loading
graphics/java/android/graphics/drawable/DrawableContainer.java +7 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,13 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { } } @Override public void setHotspotBounds(int left, int top, int right, int bottom) { if (mCurrDrawable != null) { mCurrDrawable.setHotspotBounds(left, top, right, bottom); } } @Override protected boolean onStateChange(int[] state) { if (mLastDrawable != null) { Loading
graphics/java/android/graphics/drawable/InsetDrawable.java +5 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,11 @@ public class InsetDrawable extends Drawable implements Drawable.Callback mInsetState.mDrawable.setHotspot(x, y); } @Override public void setHotspotBounds(int left, int top, int right, int bottom) { mInsetState.mDrawable.setHotspotBounds(left, top, right, bottom); } @Override public boolean setVisible(boolean visible, boolean restart) { mInsetState.mDrawable.setVisible(visible, restart); Loading
graphics/java/android/graphics/drawable/LayerDrawable.java +9 −0 Original line number Diff line number Diff line Loading @@ -570,6 +570,15 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { } } @Override public void setHotspotBounds(int left, int top, int right, int bottom) { final ChildDrawable[] array = mLayerState.mChildren; final int N = mLayerState.mNum; for (int i = 0; i < N; i++) { array[i].mDrawable.setHotspotBounds(left, top, right, bottom); } } @Override public boolean setVisible(boolean visible, boolean restart) { final boolean changed = super.setVisible(visible, restart); Loading
graphics/java/android/graphics/drawable/RippleDrawable.java +0 −3 Original line number Diff line number Diff line Loading @@ -460,9 +460,6 @@ public class RippleDrawable extends LayerDrawable { invalidateSelf(); } /** * @hide */ @Override public void setHotspotBounds(int left, int top, int right, int bottom) { mOverrideBounds = true; Loading
graphics/java/android/graphics/drawable/Drawable.java +1 −1 File changed.Contains only whitespace changes. Show changes