Loading graphics/java/android/graphics/drawable/DrawableContainer.java +35 −25 Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,13 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { * @param d The drawable to initialize. * @param d The drawable to initialize. */ */ private void initializeDrawableForDisplay(Drawable d) { private void initializeDrawableForDisplay(Drawable d) { // Temporary fix for suspending callbacks during initialization. We // don't want any of these setters causing an invalidate() since that // may call back into DrawableContainer. final Callback cb = d.getCallback(); d.setCallback(null); try { if (mDrawableContainerState.mEnterFadeDuration <= 0 && mHasAlpha) { if (mDrawableContainerState.mEnterFadeDuration <= 0 && mHasAlpha) { d.setAlpha(mAlpha); d.setAlpha(mAlpha); } } Loading Loading @@ -529,6 +536,9 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, hotspotBounds.right, hotspotBounds.bottom); hotspotBounds.right, hotspotBounds.bottom); } } } finally { d.setCallback(cb); } } } void animate(boolean schedule) { void animate(boolean schedule) { Loading Loading
graphics/java/android/graphics/drawable/DrawableContainer.java +35 −25 Original line number Original line Diff line number Diff line Loading @@ -500,6 +500,13 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { * @param d The drawable to initialize. * @param d The drawable to initialize. */ */ private void initializeDrawableForDisplay(Drawable d) { private void initializeDrawableForDisplay(Drawable d) { // Temporary fix for suspending callbacks during initialization. We // don't want any of these setters causing an invalidate() since that // may call back into DrawableContainer. final Callback cb = d.getCallback(); d.setCallback(null); try { if (mDrawableContainerState.mEnterFadeDuration <= 0 && mHasAlpha) { if (mDrawableContainerState.mEnterFadeDuration <= 0 && mHasAlpha) { d.setAlpha(mAlpha); d.setAlpha(mAlpha); } } Loading Loading @@ -529,6 +536,9 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, hotspotBounds.right, hotspotBounds.bottom); hotspotBounds.right, hotspotBounds.bottom); } } } finally { d.setCallback(cb); } } } void animate(boolean schedule) { void animate(boolean schedule) { Loading