public void removeImageView ( CubeImageView imageView ) { if ( null == imageView || null == mFirstImageViewHolder ) { return ; } ImageViewHolder holder = mFirstImageViewHolder ; do { if ( holder . contains ( imageView ) ) { // Make sure entry is right. if ( holder == mFirstImageViewHolder ) { mFirstImageViewHolder = holder . mNext ; } if ( null != holder . mNext ) { holder . mNext . mPrev = holder . mPrev ; } if ( null != holder . mPrev ) { holder . mPrev . mNext = holder . mNext ; } } } while ( ( holder = holder . mNext ) != null ) ; }
Remove the ImageView from ImageTask