diff options
| author | Romain Guy <romainguy@google.com> | 2013-06-10 17:03:47 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2013-06-10 17:03:47 -0700 |
| commit | fadd2081443dd2f59f8e8143256a34b7485fe72e (patch) | |
| tree | 58a98aa7cbd6a7e8c03440a921b1fbe877813cb7 | |
| parent | be4e6aaa0252dd7da28b7aa85beba982538efa46 (diff) | |
| download | frameworks_base-fadd2081443dd2f59f8e8143256a34b7485fe72e.zip frameworks_base-fadd2081443dd2f59f8e8143256a34b7485fe72e.tar.gz frameworks_base-fadd2081443dd2f59f8e8143256a34b7485fe72e.tar.bz2 | |
Make constants final
Change-Id: Ifd54e55011ab63a10ddf851529ce4779447133e0
| -rw-r--r-- | api/current.txt | 8 | ||||
| -rw-r--r-- | core/java/android/view/animation/Transformation.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/api/current.txt b/api/current.txt index 7907e56..aa6163f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -27970,10 +27970,10 @@ package android.view.animation { method public void setAlpha(float); method public void setTransformationType(int); method public java.lang.String toShortString(); - field public static int TYPE_ALPHA; - field public static int TYPE_BOTH; - field public static int TYPE_IDENTITY; - field public static int TYPE_MATRIX; + field public static final int TYPE_ALPHA = 1; // 0x1 + field public static final int TYPE_BOTH = 3; // 0x3 + field public static final int TYPE_IDENTITY = 0; // 0x0 + field public static final int TYPE_MATRIX = 2; // 0x2 field protected float mAlpha; field protected android.graphics.Matrix mMatrix; field protected int mTransformationType; diff --git a/core/java/android/view/animation/Transformation.java b/core/java/android/view/animation/Transformation.java index e8c1d23..890909b 100644 --- a/core/java/android/view/animation/Transformation.java +++ b/core/java/android/view/animation/Transformation.java @@ -29,19 +29,19 @@ public class Transformation { /** * Indicates a transformation that has no effect (alpha = 1 and identity matrix.) */ - public static int TYPE_IDENTITY = 0x0; + public static final int TYPE_IDENTITY = 0x0; /** * Indicates a transformation that applies an alpha only (uses an identity matrix.) */ - public static int TYPE_ALPHA = 0x1; + public static final int TYPE_ALPHA = 0x1; /** * Indicates a transformation that applies a matrix only (alpha = 1.) */ - public static int TYPE_MATRIX = 0x2; + public static final int TYPE_MATRIX = 0x2; /** * Indicates a transformation that applies an alpha and a matrix. */ - public static int TYPE_BOTH = TYPE_ALPHA | TYPE_MATRIX; + public static final int TYPE_BOTH = TYPE_ALPHA | TYPE_MATRIX; protected Matrix mMatrix; protected float mAlpha; |
