summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/Window.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/view/Window.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/view/Window.java')
-rw-r--r--core/java/android/view/Window.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java
index e332135..744f665 100644
--- a/core/java/android/view/Window.java
+++ b/core/java/android/view/Window.java
@@ -16,6 +16,7 @@
package android.view;
+import android.annotation.ColorInt;
import android.annotation.DrawableRes;
import android.annotation.IdRes;
import android.annotation.LayoutRes;
@@ -1069,7 +1070,7 @@ public abstract class Window {
public abstract void setTitle(CharSequence title);
@Deprecated
- public abstract void setTitleColor(int textColor);
+ public abstract void setTitleColor(@ColorInt int textColor);
public abstract void openPanel(int featureId, KeyEvent event);
@@ -1835,6 +1836,7 @@ public abstract class Window {
/**
* @return the color of the status bar.
*/
+ @ColorInt
public abstract int getStatusBarColor();
/**
@@ -1852,11 +1854,12 @@ public abstract class Window {
* The transitionName for the view background will be "android:status:background".
* </p>
*/
- public abstract void setStatusBarColor(int color);
+ public abstract void setStatusBarColor(@ColorInt int color);
/**
* @return the color of the navigation bar.
*/
+ @ColorInt
public abstract int getNavigationBarColor();
/**
@@ -1874,7 +1877,7 @@ public abstract class Window {
* The transitionName for the view background will be "android:navigation:background".
* </p>
*/
- public abstract void setNavigationBarColor(int color);
+ public abstract void setNavigationBarColor(@ColorInt int color);
}