diff options
| author | Svetoslav Ganov <svetoslavganov@google.com> | 2011-06-15 15:29:51 -0700 |
|---|---|---|
| committer | Svetoslav Ganov <svetoslavganov@google.com> | 2011-06-15 15:32:11 -0700 |
| commit | 13774d2e38e73ef4d0f6d0db3501ba032fa6da5a (patch) | |
| tree | 4998abdc42b66fa7b5f659f99fc9d3d08d8d611c /core/java | |
| parent | f66abd3c07451a4b041c80ebf396d78a6d7fe644 (diff) | |
| download | frameworks_base-13774d2e38e73ef4d0f6d0db3501ba032fa6da5a.zip frameworks_base-13774d2e38e73ef4d0f6d0db3501ba032fa6da5a.tar.gz frameworks_base-13774d2e38e73ef4d0f6d0db3501ba032fa6da5a.tar.bz2 | |
AccessibilityNodeInfo not properly returning checked status
1. CompundButton was not setting its checked state in the info.
bug:4674048
Change-Id: Ic711d4ee9b2214e9bdf86546df406b497aaa90b5
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/widget/CompoundButton.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/widget/CompoundButton.java b/core/java/android/widget/CompoundButton.java index a730018..2410eb2 100644 --- a/core/java/android/widget/CompoundButton.java +++ b/core/java/android/widget/CompoundButton.java @@ -28,6 +28,7 @@ import android.util.AttributeSet; import android.view.Gravity; import android.view.ViewDebug; import android.view.accessibility.AccessibilityEvent; +import android.view.accessibility.AccessibilityNodeInfo; /** * <p> @@ -214,6 +215,12 @@ public abstract class CompoundButton extends Button implements Checkable { } @Override + public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { + super.onInitializeAccessibilityNodeInfo(info); + info.setChecked(mChecked); + } + + @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); |
