diff options
| author | Svetoslav Ganov <svetoslavganov@google.com> | 2011-10-20 14:29:18 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-10-20 14:29:18 -0700 |
| commit | c8c2e17ecd3488b41d651369d942fafc745e6baa (patch) | |
| tree | 70012776fb2f3067a5d265300eded21a9808b0ca /core/java | |
| parent | 79235d2a93086538817391c847a8063442e1e1f0 (diff) | |
| parent | e261e283eaedd38235fc93b2a5c35758c613b10c (diff) | |
Merge "Add content description setter to RemoteViews"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/View.java | 1 | ||||
| -rw-r--r-- | core/java/android/widget/RemoteViews.java | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index a2f9b360b2b4..fea79d55f0bc 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -4219,6 +4219,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal * * @attr ref android.R.styleable#View_contentDescription */ + @RemotableViewMethod public void setContentDescription(CharSequence contentDescription) { mContentDescription = contentDescription; } 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. * |
