summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-07-16 17:05:36 -0700
committerRomain Guy <romainguy@android.com>2009-07-16 17:05:36 -0700
commit6bdbfcfa77177eb7c8905123f44f2fa5aa0f17b1 (patch)
treed881958600280851215dd002257a353632800ca2 /core/java
parent2493097cb077b772af779bf14251e3ac0fff95f8 (diff)
downloadframeworks_base-6bdbfcfa77177eb7c8905123f44f2fa5aa0f17b1.zip
frameworks_base-6bdbfcfa77177eb7c8905123f44f2fa5aa0f17b1.tar.gz
frameworks_base-6bdbfcfa77177eb7c8905123f44f2fa5aa0f17b1.tar.bz2
Fixes #1861763. Prevents IllegalArgumentException in AbsListView on focus
search. This change makes sure the focus search does not attempt to traverse views from the recycler.
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/widget/AbsListView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java
index f9ca8cb..777beed 100644
--- a/core/java/android/widget/AbsListView.java
+++ b/core/java/android/widget/AbsListView.java
@@ -720,7 +720,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
@Override
public void getFocusedRect(Rect r) {
View view = getSelectedView();
- if (view != null) {
+ if (view != null && view.getParent() == this) {
// the focused rectangle of the selected view offset into the
// coordinate space of this view.
view.getFocusedRect(r);