diff options
| author | Selim Cinek <cinek@google.com> | 2018-04-10 17:46:46 -0700 |
|---|---|---|
| committer | Selim Cinek <cinek@google.com> | 2018-04-12 11:09:23 -0700 |
| commit | 396cacaaa8c41e19a835e1a64f76314cd2db49f5 (patch) | |
| tree | 988b59cd1aedd1f438ca2ba813bd075d806b7e18 /core/java/android/widget/RemoteViews.java | |
| parent | b172d5b4375ecb1895d3d7bed3d94e4fac3551a2 (diff) | |
Changed the appearance of phone call notifications
The old design didn't work at all because of various
paddings. The new design adds more paddings and a
new button style
Fixes: 72814598
Test: runtest systemui
Change-Id: I4b4ac0790afe45db97f912740446c6da09620be3
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
| -rw-r--r-- | core/java/android/widget/RemoteViews.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index 08513aa8682e..a34bd093e655 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -3000,6 +3000,21 @@ public class RemoteViews implements Parcelable, Filter { } /** + * Call a method taking one ColorStateList on a view in the layout for this RemoteViews. + * + * @param viewId The id of the view on which to call the method. + * @param methodName The name of the method to call. + * @param value The value to pass to the method. + * + * @hide + */ + public void setColorStateList(int viewId, String methodName, ColorStateList value) { + addAction(new ReflectionAction(viewId, methodName, ReflectionAction.COLOR_STATE_LIST, + value)); + } + + + /** * Call a method taking one long on a view in the layout for this RemoteViews. * * @param viewId The id of the view on which to call the method. |
