diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-08-29 03:47:31 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-09-01 17:26:51 +0200 |
commit | 17ee3ec0b85f1ca29920bc3bf26e613b82a0ecf8 (patch) | |
tree | c18fb4ebce10af627336e901257c24cb23f98b42 /core/java/android/widget/RemoteViews.java | |
parent | 6531ae2fcd24c9b9aa2821bb9fd0957666fa4b4f (diff) | |
download | frameworks_base-17ee3ec0b85f1ca29920bc3bf26e613b82a0ecf8.zip frameworks_base-17ee3ec0b85f1ca29920bc3bf26e613b82a0ecf8.tar.gz frameworks_base-17ee3ec0b85f1ca29920bc3bf26e613b82a0ecf8.tar.bz2 |
Media notification updates
- Make text white.
- Adjust padding & metrics to redlines.
- Use different narrow layout when 3 or less notifications with big
picture.
- Update action ripples.
- Fix progress bar size & fix color for indeterminate progress bar.
- Apply default background in SystemUI when no color is set, so we
don't end up with white text on white background.
Bug: 15437369
Bug: 16625746
Bug: 15147533
Change-Id: Ie8bd5ad0bbca972685adb50034fff88ea97456bd
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
-rw-r--r-- | core/java/android/widget/RemoteViews.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index 05ff151..69d5f40 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -864,7 +864,7 @@ public class RemoteViews implements Parcelable, Filter { if (alpha != -1) { targetDrawable.setAlpha(alpha); } - if (colorFilter != -1 && filterMode != null) { + if (filterMode != null) { targetDrawable.setColorFilter(colorFilter, filterMode); } if (level != -1) { @@ -2189,8 +2189,8 @@ public class RemoteViews implements Parcelable, Filter { * @param alpha Specify an alpha value for the drawable, or -1 to leave * unchanged. * @param colorFilter Specify a color for a - * {@link android.graphics.ColorFilter} for this drawable, or -1 - * to leave unchanged. + * {@link android.graphics.ColorFilter} for this drawable. This will be ignored if + * {@code mode} is {@code null}. * @param mode Specify a PorterDuff mode for this drawable, or null to leave * unchanged. * @param level Specify the level for the drawable, or -1 to leave |