diff options
| author | Dianne Hackborn <hackbod@google.com> | 2010-11-04 15:08:59 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2010-11-04 15:34:41 -0700 |
| commit | e213677037f836529efcc0ac201fc61dd95481c5 (patch) | |
| tree | 0b5f5644a7ea7618b4c5e2bdc1c98a62ad602725 /core/java/android/widget/CompoundButton.java | |
| parent | c63de86ad37772cfe488663fe043157ac36c14ab (diff) | |
Push the jumpDrawablesToCurrentState() thing off everywhere it should be.
Also add a new interface that items in AbsListView can implement to
adjust the bounds of the selection shown for them. This will allow
contacts to use list view's regular selection facility rather than
implementing something special in their item views.
Change-Id: I29cbdbc7122111ee97e47fe7d6ec55ff07be79cc
Diffstat (limited to 'core/java/android/widget/CompoundButton.java')
| -rw-r--r-- | core/java/android/widget/CompoundButton.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/widget/CompoundButton.java b/core/java/android/widget/CompoundButton.java index bf02ad3bfd7b..0df45cca6a65 100644 --- a/core/java/android/widget/CompoundButton.java +++ b/core/java/android/widget/CompoundButton.java @@ -279,6 +279,12 @@ public abstract class CompoundButton extends Button implements Checkable { return super.verifyDrawable(who) || who == mButtonDrawable; } + @Override + public void jumpDrawablesToCurrentState() { + super.jumpDrawablesToCurrentState(); + if (mButtonDrawable != null) mButtonDrawable.jumpToCurrentState(); + } + static class SavedState extends BaseSavedState { boolean checked; |
