Clean up layout direction APIs for Drawable

- see bug #6427629

Change-Id: I3119db3022bba0ee325b6d0d4471bfebd850ec10
This commit is contained in:
Fabrice Di Meglio
2012-05-31 15:21:23 -07:00
parent db120c4dd2
commit c1da65187a
9 changed files with 88 additions and 72 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 = getResolvedLayoutDirectionSelf();
final int layoutDirection = getLayoutDirection();
Gravity.apply(state.mGravity, mBitmapWidth, mBitmapHeight,
getBounds(), mDstRect, layoutDirection);
mApplyGravity = false;