Merge change 7619 into donut
* changes: Fixes #1861763. Prevents IllegalArgumentException in AbsListView on focus search.
This commit is contained in:
@@ -720,7 +720,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
@Override
|
@Override
|
||||||
public void getFocusedRect(Rect r) {
|
public void getFocusedRect(Rect r) {
|
||||||
View view = getSelectedView();
|
View view = getSelectedView();
|
||||||
if (view != null) {
|
if (view != null && view.getParent() == this) {
|
||||||
// the focused rectangle of the selected view offset into the
|
// the focused rectangle of the selected view offset into the
|
||||||
// coordinate space of this view.
|
// coordinate space of this view.
|
||||||
view.getFocusedRect(r);
|
view.getFocusedRect(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user