Revert "Clean up layout direction APIs for Drawable"

This reverts commit c1da65187a.
This commit is contained in:
Jean-Baptiste Queru
2012-06-02 05:46:20 -07:00
parent 7806882541
commit c96132ff53
9 changed files with 72 additions and 88 deletions

View File

@@ -385,7 +385,7 @@ public class BitmapDrawable extends Drawable {
Shader shader = state.mPaint.getShader();
if (shader == null) {
if (mApplyGravity) {
final int layoutDirection = getLayoutDirection();
final int layoutDirection = getResolvedLayoutDirectionSelf();
Gravity.apply(state.mGravity, mBitmapWidth, mBitmapHeight,
getBounds(), mDstRect, layoutDirection);
mApplyGravity = false;