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

Commit 5f9eb898 authored by Steven Dao's avatar Steven Dao
Browse files

Fix CollectionItemInfo.isHeading for ListView

- At the moment all non-header/footer items are marked
  as headings and vice versa.

Change-Id: I453e2fb9e75fa4bd863f513c4318a5e6ac4b2c87
parent 1a8fbfce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3930,7 +3930,7 @@ public class ListView extends AbsListView {
        super.onInitializeAccessibilityNodeInfoForItem(view, position, info);

        final LayoutParams lp = (LayoutParams) view.getLayoutParams();
        final boolean isHeading = lp != null && lp.viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER;
        final boolean isHeading = lp != null && lp.viewType == ITEM_VIEW_TYPE_HEADER_OR_FOOTER;
        final boolean isSelected = isItemChecked(position);
        final CollectionItemInfo itemInfo = CollectionItemInfo.obtain(
                position, 1, 0, 1, isHeading, isSelected);