package your.package;

import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.support.annotation.NonNull;
import android.widget.ImageView;

public abstract class AndroidPaletteCallback extends PaletteCallback<ImageView> {

    public AndroidPaletteCallback(@NonNull ImageView imageView) {
        super(imageView);
    }

    @Override protected Bitmap getBitmap() {
        return ((BitmapDrawable) getImageView().getDrawable()).getBitmap();
    }
}