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

Commit 061b16ff authored by Steven Dao's avatar Steven Dao
Browse files

Fix GridView isHeading computation

- Same issue that was previously in the ListView

Change-Id: I3a3105b46bdadc43ea679b4d29d0719a67c291bc
parent f9ef9793
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2404,7 +2404,7 @@ public class GridView extends AbsListView {
        }

        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(
                row, 1, column, 1, isHeading, isSelected);