Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
435c0ee10a
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user