Exemplo n.º 1
0
  /**
   * Display the thumbnail from a bitmap.
   *
   * @param thumbnail The bitmap to show as thumbnail.
   */
  public void displayThumbnail(Bitmap thumbnail) {
    if (thumbnail == null) {
      // Show a favicon based view instead.
      displayThumbnail(R.drawable.favicon);
      return;
    }
    mThumbnailSet = true;
    Favicons.cancelFaviconLoad(mLoadId);

    mThumbnailView.setScaleType(SCALE_TYPE_THUMBNAIL);
    mThumbnailView.setImageBitmap(thumbnail);
    mThumbnailView.setBackgroundDrawable(null);
  }
Exemplo n.º 2
0
 public void setLoadId(int aLoadId) {
   Favicons.cancelFaviconLoad(mLoadId);
   mLoadId = aLoadId;
 }