Loading graphics/java/android/graphics/drawable/LayerDrawable.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -92,6 +92,8 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { private int[] mPaddingB; private int[] mPaddingB; private final Rect mTmpRect = new Rect(); private final Rect mTmpRect = new Rect(); private final Rect mTmpOutRect = new Rect(); private final Rect mTmpContainer = new Rect(); private Rect mHotspotBounds; private Rect mHotspotBounds; private boolean mMutated; private boolean mMutated; Loading Loading @@ -945,7 +947,7 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { int padR = 0; int padR = 0; int padB = 0; int padB = 0; final Rect outRect = mTmpRect; final Rect outRect = mTmpOutRect; final int layoutDirection = getLayoutDirection(); final int layoutDirection = getLayoutDirection(); final boolean nest = mLayerState.mPaddingMode == PADDING_MODE_NEST; final boolean nest = mLayerState.mPaddingMode == PADDING_MODE_NEST; final ChildDrawable[] array = mLayerState.mChildren; final ChildDrawable[] array = mLayerState.mChildren; Loading @@ -953,7 +955,8 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { for (int i = 0; i < N; i++) { for (int i = 0; i < N; i++) { final ChildDrawable r = array[i]; final ChildDrawable r = array[i]; final Drawable d = r.mDrawable; final Drawable d = r.mDrawable; final Rect container = d.getBounds(); final Rect container = mTmpContainer; container.set(d.getBounds()); // Take the resolved layout direction into account. If start / end // Take the resolved layout direction into account. If start / end // padding are defined, they will be resolved (hence overriding) to // padding are defined, they will be resolved (hence overriding) to Loading Loading
graphics/java/android/graphics/drawable/LayerDrawable.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -92,6 +92,8 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { private int[] mPaddingB; private int[] mPaddingB; private final Rect mTmpRect = new Rect(); private final Rect mTmpRect = new Rect(); private final Rect mTmpOutRect = new Rect(); private final Rect mTmpContainer = new Rect(); private Rect mHotspotBounds; private Rect mHotspotBounds; private boolean mMutated; private boolean mMutated; Loading Loading @@ -945,7 +947,7 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { int padR = 0; int padR = 0; int padB = 0; int padB = 0; final Rect outRect = mTmpRect; final Rect outRect = mTmpOutRect; final int layoutDirection = getLayoutDirection(); final int layoutDirection = getLayoutDirection(); final boolean nest = mLayerState.mPaddingMode == PADDING_MODE_NEST; final boolean nest = mLayerState.mPaddingMode == PADDING_MODE_NEST; final ChildDrawable[] array = mLayerState.mChildren; final ChildDrawable[] array = mLayerState.mChildren; Loading @@ -953,7 +955,8 @@ public class LayerDrawable extends Drawable implements Drawable.Callback { for (int i = 0; i < N; i++) { for (int i = 0; i < N; i++) { final ChildDrawable r = array[i]; final ChildDrawable r = array[i]; final Drawable d = r.mDrawable; final Drawable d = r.mDrawable; final Rect container = d.getBounds(); final Rect container = mTmpContainer; container.set(d.getBounds()); // Take the resolved layout direction into account. If start / end // Take the resolved layout direction into account. If start / end // padding are defined, they will be resolved (hence overriding) to // padding are defined, they will be resolved (hence overriding) to Loading