Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 325ea8de authored by alanv's avatar alanv
Browse files

Don't mark list headers or invalid items as disabled.

Bug: 6581689
Change-Id: I4088cdc7e785e60fe7e30807cdf045131584f29d
parent 817a243c
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
            }