Loading core/java/android/widget/HeaderViewListAdapter.java +6 −6 Original line number Diff line number Diff line Loading @@ -145,7 +145,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } public boolean isEnabled(int position) { // Header (negative positions will throw an ArrayIndexOutOfBoundsException) // Header (negative positions will throw an IndexOutOfBoundsException) int numHeaders = getHeadersCount(); if (position < numHeaders) { return mHeaderViewInfos.get(position).isSelectable; Loading @@ -161,12 +161,12 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } } // Footer (off-limits positions will throw an ArrayIndexOutOfBoundsException) // Footer (off-limits positions will throw an IndexOutOfBoundsException) return mFooterViewInfos.get(adjPosition - adapterCount).isSelectable; } public Object getItem(int position) { // Header (negative positions will throw an ArrayIndexOutOfBoundsException) // Header (negative positions will throw an IndexOutOfBoundsException) int numHeaders = getHeadersCount(); if (position < numHeaders) { return mHeaderViewInfos.get(position).data; Loading @@ -182,7 +182,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } } // Footer (off-limits positions will throw an ArrayIndexOutOfBoundsException) // Footer (off-limits positions will throw an IndexOutOfBoundsException) return mFooterViewInfos.get(adjPosition - adapterCount).data; } Loading @@ -206,7 +206,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } public View getView(int position, View convertView, ViewGroup parent) { // Header (negative positions will throw an ArrayIndexOutOfBoundsException) // Header (negative positions will throw an IndexOutOfBoundsException) int numHeaders = getHeadersCount(); if (position < numHeaders) { return mHeaderViewInfos.get(position).view; Loading @@ -222,7 +222,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } } // Footer (off-limits positions will throw an ArrayIndexOutOfBoundsException) // Footer (off-limits positions will throw an IndexOutOfBoundsException) return mFooterViewInfos.get(adjPosition - adapterCount).view; } Loading Loading
core/java/android/widget/HeaderViewListAdapter.java +6 −6 Original line number Diff line number Diff line Loading @@ -145,7 +145,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } public boolean isEnabled(int position) { // Header (negative positions will throw an ArrayIndexOutOfBoundsException) // Header (negative positions will throw an IndexOutOfBoundsException) int numHeaders = getHeadersCount(); if (position < numHeaders) { return mHeaderViewInfos.get(position).isSelectable; Loading @@ -161,12 +161,12 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } } // Footer (off-limits positions will throw an ArrayIndexOutOfBoundsException) // Footer (off-limits positions will throw an IndexOutOfBoundsException) return mFooterViewInfos.get(adjPosition - adapterCount).isSelectable; } public Object getItem(int position) { // Header (negative positions will throw an ArrayIndexOutOfBoundsException) // Header (negative positions will throw an IndexOutOfBoundsException) int numHeaders = getHeadersCount(); if (position < numHeaders) { return mHeaderViewInfos.get(position).data; Loading @@ -182,7 +182,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } } // Footer (off-limits positions will throw an ArrayIndexOutOfBoundsException) // Footer (off-limits positions will throw an IndexOutOfBoundsException) return mFooterViewInfos.get(adjPosition - adapterCount).data; } Loading @@ -206,7 +206,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } public View getView(int position, View convertView, ViewGroup parent) { // Header (negative positions will throw an ArrayIndexOutOfBoundsException) // Header (negative positions will throw an IndexOutOfBoundsException) int numHeaders = getHeadersCount(); if (position < numHeaders) { return mHeaderViewInfos.get(position).view; Loading @@ -222,7 +222,7 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable { } } // Footer (off-limits positions will throw an ArrayIndexOutOfBoundsException) // Footer (off-limits positions will throw an IndexOutOfBoundsException) return mFooterViewInfos.get(adjPosition - adapterCount).view; } Loading