summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-11-04 15:08:59 -0700
committerDianne Hackborn <hackbod@google.com>2010-11-04 15:34:41 -0700
commite213677037f836529efcc0ac201fc61dd95481c5 (patch)
tree0b5f5644a7ea7618b4c5e2bdc1c98a62ad602725 /policy
parentc63de86ad37772cfe488663fe043157ac36c14ab (diff)
downloadframeworks_base-e213677037f836529efcc0ac201fc61dd95481c5.zip
frameworks_base-e213677037f836529efcc0ac201fc61dd95481c5.tar.gz
frameworks_base-e213677037f836529efcc0ac201fc61dd95481c5.tar.bz2
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 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/RecentApplicationsBackground.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/RecentApplicationsBackground.java b/policy/src/com/android/internal/policy/impl/RecentApplicationsBackground.java
index 7c99e87..8d87728 100644
--- a/policy/src/com/android/internal/policy/impl/RecentApplicationsBackground.java
+++ b/policy/src/com/android/internal/policy/impl/RecentApplicationsBackground.java
@@ -72,6 +72,12 @@ public class RecentApplicationsBackground extends LinearLayout {
}
@Override
+ public void jumpDrawablesToCurrentState() {
+ super.jumpDrawablesToCurrentState();
+ if (mBackground != null) mBackground.jumpToCurrentState();
+ }
+
+ @Override
protected void drawableStateChanged() {
Drawable d = mBackground;
if (d != null && d.isStateful()) {