Merge change 7619 into donut

* changes:
  Fixes #1861763. Prevents IllegalArgumentException in AbsListView on focus search.
This commit is contained in:
Android (Google) Code Review
2009-07-16 17:06:47 -07:00

View File

@@ -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);