am 435c0ee1: Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into klp-dev

* commit '435c0ee10af132937dc0a22c39380624e6efd5ab':
  Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding
This commit is contained in:
Fabrice Di Meglio
2013-11-07 11:21:03 -08:00
committed by Android Git Automerger
2 changed files with 3 additions and 2 deletions

View File

@@ -88,9 +88,10 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
@Override
public boolean getPadding(Rect padding) {
final Rect r = mDrawableContainerState.getConstantPadding();
boolean result = true;
boolean result;
if (r != null) {
padding.set(r);
result = (r.left | r.top | r.bottom | r.right) != 0;
} else {
if (mCurrDrawable != null) {
result = mCurrDrawable.getPadding(padding);

View File

@@ -244,7 +244,7 @@ public class NinePatchDrawable extends Drawable {
} else {
padding.set(mPadding);
}
return true;
return (padding.left | padding.top | padding.right | padding.bottom) != 0;
}
/**