@Override public View getView(int i, View view, ViewGroup viewGroup) { View convertView = mInnerAdapter.getView(i, view, viewGroup); mViewToItemIdMap.put(convertView, getItemId(i)); mHeaderIdToViewMap.add((int) getHeaderId(i), convertView); if (mCollapseHeaderIds.contains(getHeaderId(i))) { convertView.setVisibility(View.GONE); } else { convertView.setVisibility(View.VISIBLE); } return convertView; }
private WrapperView getView$1ad34c65(int paramInt, View paramView) { Object localObject = null; View localView2; int i; label68: View localView1; if (paramView == null) { paramView = new WrapperView(mContext); localView2 = mDelegate.getView(paramInt, mItem, paramView); if ((paramInt == 0) || (mDelegate.getHeaderId(paramInt) != mDelegate.getHeaderId(paramInt - 1))) { break label159; } i = 1; if (i == 0) { break label164; } localObject = mHeader; if (localObject != null) { mHeaderCache.add(localObject); } localView1 = null; label98: if ((!(localView2 instanceof Checkable)) || ((paramView instanceof CheckableWrapperView))) { break label260; } localObject = new CheckableWrapperView(mContext); } for (;;) { paramView = mDivider; paramInt = mDividerHeight; if (localView2 != null) { break label297; } throw new NullPointerException("List view item must not be null."); paramView = (WrapperView)paramView; break; label159: i = 0; break label68; label164: if (mHeader == null) { if (mHeaderCache.size() <= 0) {} } for (localObject = (View)mHeaderCache.remove(0);; localObject = mHeader) { localView1 = mDelegate.getHeaderView(paramInt, (View)localObject, paramView); if (localView1 != null) { break; } throw new NullPointerException("Header view must not be null."); } localView1.setClickable(true); localView1.setOnClickListener(new View.OnClickListener() { public final void onClick(View paramAnonymousView) { if (mOnHeaderClickListener != null) { mDelegate.getHeaderId(paramInt); } } }); break label98; label260: localObject = paramView; if (!(localView2 instanceof Checkable)) { localObject = paramView; if ((paramView instanceof CheckableWrapperView)) { localObject = new WrapperView(mContext); } } } label297: if (mItem != localView2) { ((WrapperView)localObject).removeView(mItem); mItem = localView2; ViewParent localViewParent = localView2.getParent(); if ((localViewParent != null) && (localViewParent != localObject) && ((localViewParent instanceof ViewGroup))) { ((ViewGroup)localViewParent).removeView(localView2); } ((WrapperView)localObject).addView(localView2); } if (mHeader != localView1) { if (mHeader != null) { ((WrapperView)localObject).removeView(mHeader); } mHeader = localView1; if (localView1 != null) { ((WrapperView)localObject).addView(localView1); } } if (mDivider != paramView) { mDivider = paramView; mDividerHeight = paramInt; ((WrapperView)localObject).invalidate(); } return (WrapperView)localObject; }