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

Commit 58869d2c authored by Steven Dao's avatar Steven Dao Committed by Android (Google) Code Review
Browse files

Merge "Fix CollectionItemInfo.isHeading for ListView"

parents 7874bdcd 5f9eb898
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);