diff options
author | jungheang.lee <jungheang.lee@lge.com> | 2014-11-20 22:34:26 +0900 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2014-11-21 03:01:41 +0000 |
commit | 735b75ce274ef7a4c78745844a4269d72cb4feae (patch) | |
tree | 62e61f434aa4a581b4727f3d6ee40a388f9917b0 /graphics | |
parent | 2ee054b4f099ce67dffc29329612170305053783 (diff) | |
download | frameworks_base-735b75ce274ef7a4c78745844a4269d72cb4feae.zip frameworks_base-735b75ce274ef7a4c78745844a4269d72cb4feae.tar.gz frameworks_base-735b75ce274ef7a4c78745844a4269d72cb4feae.tar.bz2 |
Cannot set Pivot X,Y values from setPivotX, setPivotY API
Pivot value can not be changed once they have been set to default.
To be changed "==" -> "!=" in if()
BUG: 18474532
Change-Id: Iacd16eb951154ea97c241566b704e0ad3f225bd1
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/RotateDrawable.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/java/android/graphics/drawable/RotateDrawable.java b/graphics/java/android/graphics/drawable/RotateDrawable.java index 1ee44fb..e1991fe 100644 --- a/graphics/java/android/graphics/drawable/RotateDrawable.java +++ b/graphics/java/android/graphics/drawable/RotateDrawable.java @@ -216,7 +216,7 @@ public class RotateDrawable extends Drawable implements Drawable.Callback { * @attr ref android.R.styleable#RotateDrawable_pivotX */ public void setPivotX(float pivotX) { - if (mState.mPivotX == pivotX) { + if (mState.mPivotX != pivotX) { mState.mPivotX = pivotX; invalidateSelf(); } @@ -242,7 +242,7 @@ public class RotateDrawable extends Drawable implements Drawable.Callback { * @see #isPivotXRelative() */ public void setPivotXRelative(boolean relative) { - if (mState.mPivotXRel == relative) { + if (mState.mPivotXRel != relative) { mState.mPivotXRel = relative; invalidateSelf(); } @@ -270,7 +270,7 @@ public class RotateDrawable extends Drawable implements Drawable.Callback { * @attr ref android.R.styleable#RotateDrawable_pivotY */ public void setPivotY(float pivotY) { - if (mState.mPivotY == pivotY) { + if (mState.mPivotY != pivotY) { mState.mPivotY = pivotY; invalidateSelf(); } @@ -296,7 +296,7 @@ public class RotateDrawable extends Drawable implements Drawable.Callback { * @see #isPivotYRelative() */ public void setPivotYRelative(boolean relative) { - if (mState.mPivotYRel == relative) { + if (mState.mPivotYRel != relative) { mState.mPivotYRel = relative; invalidateSelf(); } |