Merge "Don't mark list headers or invalid items as disabled." into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f14c078ccc
@@ -2283,14 +2283,10 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
final ListAdapter adapter = getAdapter();
|
||||
|
||||
if ((position == INVALID_POSITION) || (adapter == null)) {
|
||||
// Cannot perform actions on invalid items.
|
||||
info.setEnabled(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isEnabled() || !adapter.isEnabled(position)) {
|
||||
// Cannot perform actions on invalid items.
|
||||
info.setEnabled(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user