diff options
| author | Siva Velusamy <vsiva@google.com> | 2015-05-05 15:07:00 -0700 |
|---|---|---|
| committer | Siva Velusamy <vsiva@google.com> | 2015-05-07 18:44:21 -0700 |
| commit | 94a6d15ede149189bba9e5f474ed853c98230e75 (patch) | |
| tree | edc5a5211a7b69e091a13ddc3c60dcf88d9a5ea6 /core/java/android/widget/CheckedTextView.java | |
| parent | 0d857b9028f2702ce439e13feccde8182d40e1e5 (diff) | |
Use new hierarchy viewer protocol in all View subclasses
A previous CL introduced a new way of encoding view properties for
use by heirarchy viewer. This CL updates all views using the old
@ExportedProperty annotation to use this new method. The older
mechanism will be removed in a subsequent CL.
Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
Diffstat (limited to 'core/java/android/widget/CheckedTextView.java')
| -rw-r--r-- | core/java/android/widget/CheckedTextView.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/widget/CheckedTextView.java b/core/java/android/widget/CheckedTextView.java index 22e079c175e8..6b4b2c73bdff 100644 --- a/core/java/android/widget/CheckedTextView.java +++ b/core/java/android/widget/CheckedTextView.java @@ -16,6 +16,8 @@ package android.widget; +import android.annotation.NonNull; +import android.view.ViewHierarchyEncoder; import com.android.internal.R; import android.annotation.DrawableRes; @@ -459,4 +461,11 @@ public class CheckedTextView extends TextView implements Checkable { info.setCheckable(true); info.setChecked(mChecked); } + + /** @hide */ + @Override + protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { + super.encodeProperties(stream); + stream.addProperty("text:checked", isChecked()); + } } |
