Skip to content

Commit 325ea8d

Browse files
committed
Don't mark list headers or invalid items as disabled.
Bug: 6581689 Change-Id: I4088cdc7e785e60fe7e30807cdf045131584f29d
1 parent 817a243 commit 325ea8d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/java/android/widget/AbsListView.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,14 +2283,10 @@ public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo i
22832283
final ListAdapter adapter = getAdapter();
22842284

22852285
if ((position == INVALID_POSITION) || (adapter == null)) {
2286-
// Cannot perform actions on invalid items.
2287-
info.setEnabled(false);
22882286
return;
22892287
}
22902288

22912289
if (!isEnabled() || !adapter.isEnabled(position)) {
2292-
// Cannot perform actions on invalid items.
2293-
info.setEnabled(false);
22942290
return;
22952291
}
22962292

0 commit comments

Comments
 (0)