title: UIL - ImageAware is reused for another image. Task is cancelled
body: <p>First, I have a adapter which uses the <a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="nofollow">Universal Image Loader</a> library to get thumbnail for each item. It looks like this:</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
   ViewHolder viewHolder;
      if (convertView == null) {
          convertView = mInflater.inflate(R.layout.page_edit_item, null);
          viewHolder = new ViewHolder();
          viewHolder.thumbnailImageView= (ImageView) convertView.findViewById(R.id.imgPageData);
                   viewHolder.progressBar =(ProgressBar) convertView.findViewById(R.id.photo_upload_progress_view);
          convertView.setTag(viewHolder);
      } else {
          viewHolder = (ViewHolder) convertView.getTag();
      }
  
       viewHolder.progressBar.setVisibility(View.VISIBLE);
       String photoPath = getItem(position).getPhoto();
       ImageLoader.getInstance().displayImage(photoPath, viewHolder.thumbnailImageView, new SimpleImageLoadingListener(){
              @Override
              public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
                  progressBar.setVisibility(View.GONE);
              }
          });
  }
  </code></pre>
  
  <p>When tap on listview item, it moves to the detail screen activity. In this screen, I try to get the detail image (has the same image url with selected item).</p>
  
  <pre><code>     ImageLoader.getInstance().displayImage(photoPath, detailImageView);
  </code></pre>
  
  <p>The problem is when I select an item that downloaded image (it is loaded and displayed in listview), but the detail screen doesn't show this image immediately, it still black and wait for all items in adapter listview complete loaded and displayed, then it can display.<br>
  From the logcat I can see this line when go to detail screen:</p>
  
  <pre><code>ImageAware is reused for another image. Task is cancelled
  </code></pre>
  
  <p>Is there any idea?  </p>
  
  <p><strong>Update</strong>: here is my UIL config</p>
  
  <pre><code>  DisplayImageOptions options = new DisplayImageOptions.Builder()
              .resetViewBeforeLoading(true)
              .cacheInMemory(true)
              .cacheOnDisc(true)
              .bitmapConfig(Bitmap.Config.RGB_565) // default
              .displayer(new SimpleBitmapDisplayer())
              .build();
      ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext())
              .memoryCacheExtraOptions(1024, 768)
              .discCacheExtraOptions(1024, 768, CompressFormat.JPEG, 75, null)
              .taskExecutor(getThreadPool())
              .taskExecutorForCachedImages(getThreadPool())
              .memoryCache(new UsingFreqLimitedMemoryCache(2 * 1024 * 1024)) // default
              .discCache(new LimitedAgeDiscCache(cacheDir, 3600 * 24 * 7)) // default
              .discCacheFileNameGenerator(new HashCodeFileNameGenerator()) // default
              .imageDownloader(new BaseImageDownloader(getApplicationContext())) // default
              .defaultDisplayImageOptions(options) // default
              .denyCacheImageMultipleSizesInMemory()
              .writeDebugLogs()
              .build();
      ImageLoader.getInstance().init(config);
  </code></pre>