From e213677037f836529efcc0ac201fc61dd95481c5 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 4 Nov 2010 15:08:59 -0700 Subject: 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 --- core/java/android/widget/FrameLayout.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android/widget/FrameLayout.java') diff --git a/core/java/android/widget/FrameLayout.java b/core/java/android/widget/FrameLayout.java index 559a5fe61517..bcab7a9e0d31 100644 --- a/core/java/android/widget/FrameLayout.java +++ b/core/java/android/widget/FrameLayout.java @@ -156,6 +156,12 @@ public class FrameLayout extends ViewGroup { return super.verifyDrawable(who) || (who == mForeground); } + @Override + public void jumpDrawablesToCurrentState() { + super.jumpDrawablesToCurrentState(); + if (mForeground != null) mForeground.jumpToCurrentState(); + } + /** * {@inheritDoc} */ -- cgit v1.2.3