diff options
Diffstat (limited to 'core/java/android/view/NotificationHeaderView.java')
| -rw-r--r-- | core/java/android/view/NotificationHeaderView.java | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/core/java/android/view/NotificationHeaderView.java b/core/java/android/view/NotificationHeaderView.java index 82f6c7f8ce44..d4ccdbf4235c 100644 --- a/core/java/android/view/NotificationHeaderView.java +++ b/core/java/android/view/NotificationHeaderView.java @@ -17,7 +17,6 @@ package android.view; import android.annotation.Nullable; -import android.app.Notification; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; @@ -34,6 +33,7 @@ import java.util.ArrayList; */ @RemoteViews.RemoteView public class NotificationHeaderView extends LinearLayout { + public static final int NO_COLOR = -1; private final int mHeaderMinWidth; private View mAppName; private View mSubTextView; @@ -42,6 +42,8 @@ public class NotificationHeaderView extends LinearLayout { private View mExpandButton; private View mIcon; private TextView mChildCount; + private int mIconColor; + private int mOriginalNotificationColor; public NotificationHeaderView(Context context) { this(context, null); @@ -146,6 +148,24 @@ public class NotificationHeaderView extends LinearLayout { } } + @RemotableViewMethod + public void setOriginalIconColor(int color) { + mIconColor = color; + } + + public int getOriginalIconColor() { + return mIconColor; + } + + @RemotableViewMethod + public void setOriginalNotificationColor(int color) { + mOriginalNotificationColor = color; + } + + public int getOriginalNotificationColor() { + return mOriginalNotificationColor; + } + public class HeaderTouchListener implements View.OnTouchListener { private final ArrayList<Rect> mTouchRects = new ArrayList<>(); |
