diff options
author | Tor Norbye <tnorbye@google.com> | 2015-03-10 20:57:37 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2015-03-13 11:20:45 -0700 |
commit | 417ee5ba89f7e0fe5efd34fce74bf1ee5923d976 (patch) | |
tree | 20404d7a116b8f6925e163716ed2ef8365b4fbc6 /graphics/java/android/graphics/PorterDuffColorFilter.java | |
parent | 4998467ce11cb74357fc700ce9c6319dedff26db (diff) | |
download | frameworks_base-417ee5ba89f7e0fe5efd34fce74bf1ee5923d976.zip frameworks_base-417ee5ba89f7e0fe5efd34fce74bf1ee5923d976.tar.gz frameworks_base-417ee5ba89f7e0fe5efd34fce74bf1ee5923d976.tar.bz2 |
Add resource type annotations to some APIs
Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
Diffstat (limited to 'graphics/java/android/graphics/PorterDuffColorFilter.java')
-rw-r--r-- | graphics/java/android/graphics/PorterDuffColorFilter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/PorterDuffColorFilter.java b/graphics/java/android/graphics/PorterDuffColorFilter.java index bddd224..69d6891 100644 --- a/graphics/java/android/graphics/PorterDuffColorFilter.java +++ b/graphics/java/android/graphics/PorterDuffColorFilter.java @@ -16,6 +16,7 @@ package android.graphics; +import android.annotation.ColorInt; import android.annotation.NonNull; /** @@ -36,7 +37,7 @@ public class PorterDuffColorFilter extends ColorFilter { * @see #setColor(int) * @see #setMode(android.graphics.PorterDuff.Mode) */ - public PorterDuffColorFilter(int color, @NonNull PorterDuff.Mode mode) { + public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { mColor = color; mMode = mode; update(); |