diff options
| author | Svetoslav Ganov <svetoslavganov@google.com> | 2011-10-18 17:47:04 -0700 |
|---|---|---|
| committer | Svetoslav Ganov <svetoslavganov@google.com> | 2011-10-18 18:01:47 -0700 |
| commit | e261e283eaedd38235fc93b2a5c35758c613b10c (patch) | |
| tree | 2442090bcf449b07514f7d078c43774dd4f0ee5d /core/java/android/widget/RemoteViews.java | |
| parent | 29a15a237aa9a0ee0af594fbf23cf999415f2390 (diff) | |
Add content description setter to RemoteViews
bug:5480389
Change-Id: I66616f379a244ba7f3552d766f3aaa77f207550a
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
| -rw-r--r-- | core/java/android/widget/RemoteViews.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index 9cf27181d3ae..1592061906ab 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -1546,6 +1546,16 @@ public class RemoteViews implements Parcelable, Filter { } /** + * Equivalent to calling View.setContentDescription + * + * @param viewId The id of the view whose content description should change + * @param contentDescription The new content description for the view + */ + public void setContentDescription(int viewId, CharSequence contentDescription) { + setCharSequence(viewId, "setContentDescription", contentDescription); + } + + /** * Inflates the view hierarchy represented by this object and applies * all of the actions. * |
