summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/RemoteViews.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2015-03-02 09:39:27 -0800
committerTor Norbye <tnorbye@google.com>2015-03-05 16:34:12 -0800
commit80756e38882720860db52f1fcc21fa1505a02abf (patch)
tree284afea0646c9e16b8f0a5ea11e013e21768e813 /core/java/android/widget/RemoteViews.java
parentcb59f2afb7a403af7c2bb6a6deb2c981a156fb96 (diff)
downloadframeworks_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/widget/RemoteViews.java')
-rw-r--r--core/java/android/widget/RemoteViews.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java
index dd7fa18..a10be11 100644
--- a/core/java/android/widget/RemoteViews.java
+++ b/core/java/android/widget/RemoteViews.java
@@ -16,6 +16,7 @@
package android.widget;
+import android.annotation.ColorInt;
import android.app.ActivityOptions;
import android.app.ActivityThread;
import android.app.Application;
@@ -2263,7 +2264,7 @@ public class RemoteViews implements Parcelable, Filter {
* @param color Sets the text color for all the states (normal, selected,
* focused) to be this color.
*/
- public void setTextColor(int viewId, int color) {
+ public void setTextColor(int viewId, @ColorInt int color) {
setInt(viewId, "setTextColor", color);
}