diff options
author | Tor Norbye <tnorbye@google.com> | 2015-03-02 09:39:27 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2015-03-05 16:34:12 -0800 |
commit | 80756e38882720860db52f1fcc21fa1505a02abf (patch) | |
tree | 284afea0646c9e16b8f0a5ea11e013e21768e813 /core/java/android/gesture/GestureOverlayView.java | |
parent | cb59f2afb7a403af7c2bb6a6deb2c981a156fb96 (diff) | |
download | frameworks_base-80756e38882720860db52f1fcc21fa1505a02abf.zip frameworks_base-80756e38882720860db52f1fcc21fa1505a02abf.tar.gz frameworks_base-80756e38882720860db52f1fcc21fa1505a02abf.tar.bz2 |
Annotate ARGB integer parameters with @ColorInt
Change-Id: I307f72a382272cf18ddb6b07d9fcb81228568d9a
Diffstat (limited to 'core/java/android/gesture/GestureOverlayView.java')
-rw-r--r-- | core/java/android/gesture/GestureOverlayView.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/gesture/GestureOverlayView.java b/core/java/android/gesture/GestureOverlayView.java index e1a2a25..e0d454c 100644 --- a/core/java/android/gesture/GestureOverlayView.java +++ b/core/java/android/gesture/GestureOverlayView.java @@ -16,6 +16,7 @@ package android.gesture; +import android.annotation.ColorInt; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; @@ -204,18 +205,20 @@ public class GestureOverlayView extends FrameLayout { mOrientation = orientation; } - public void setGestureColor(int color) { + public void setGestureColor(@ColorInt int color) { mCertainGestureColor = color; } - public void setUncertainGestureColor(int color) { + public void setUncertainGestureColor(@ColorInt int color) { mUncertainGestureColor = color; } + @ColorInt public int getUncertainGestureColor() { return mUncertainGestureColor; } + @ColorInt public int getGestureColor() { return mCertainGestureColor; } |