Skip to content

Commit f14c078

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Don't mark list headers or invalid items as disabled." into jb-dev
2 parents 762ca84 + 325ea8d commit f14c078

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)