private void loadArtwork(final Context context, final String artworkUrl) {
        if (mLoadArtworkRunnable != null) {
            mMainThreadHandler.removeCallbacks(mLoadArtworkRunnable);
        }

        mLoadArtworkRunnable = new Runnable() {
            @Override
            public void run() {
                final Picasso picasso = Picasso.with(context);
                picasso.cancelRequest(mThumbnailArtworkTarget);

                picasso.load(artworkUrl)
                        .centerCrop()
                        .resize(mArtworkBitmapSize, mArtworkBitmapSize)
                        .into(mThumbnailArtworkTarget);
            }
        };
        mMainThreadHandler.postDelayed(mLoadArtworkRunnable, LOAD_ARTWORK_DELAY);
    }
private void loadArtwork ( final Context context , final String artworkUrl ) { if ( mLoadArtworkRunnable != null ) { mMainThreadHandler . removeCallbacks ( mLoadArtworkRunnable ) ; } mLoadArtworkRunnable = new Runnable ( ) { @ Override public void run ( ) { final Picasso picasso = Picasso . with ( context ) ; picasso . cancelRequest ( mThumbnailArtworkTarget ) ; picasso . load ( artworkUrl ) . centerCrop ( ) . resize ( mArtworkBitmapSize , mArtworkBitmapSize ) . into ( mThumbnailArtworkTarget ) ; } } ; mMainThreadHandler . postDelayed ( mLoadArtworkRunnable , LOAD_ARTWORK_DELAY ) ; }
Load the track artwork.

@param context    context used by {@link com.squareup.picasso.Picasso} to load the artwork asynchronously.
@param artworkUrl artwork url of the track.