Revert "Clean up layout direction APIs for Drawable"
This reverts commit c1da65187a.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user