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/ImageView.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/ImageView.java')
| -rw-r--r-- | core/java/android/widget/ImageView.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index 5c4a15643827..bad74d4e2ac2 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -160,6 +160,12 @@ public class ImageView extends View { } @Override + public void jumpDrawablesToCurrentState() { + super.jumpDrawablesToCurrentState(); + if (mDrawable != null) mDrawable.jumpToCurrentState(); + } + + @Override public void invalidateDrawable(Drawable dr) { if (dr == mDrawable) { /* we invalidate the whole view in this case because it's very |
