Android Lint is giving a warning as "Uses unchecked or unsafe operations" and I can't understand why and how to get rid of it without suppressing warnings.
In this next piece of code
...
AppSettings appSettings = AppSettings.getInstance();
int cornerRadius = AWScreen.dp2px(appSettings.paintingCornerRadius, this);
//
int animDrawable = AWUtils.getDrawable(animName);
if (animDrawable!=-1){
Glide
.with(this)
.load(animDrawable)
.override(imgWidth, imgHeight)
.transform(new CenterCrop(), new RoundedCorners(cornerRadius))
.into(animOverlay);
}
animOverlay.setVisibility(View.VISIBLE);
...
Lint is giving the warning in
.transform(new CenterCrop(), new RoundedCorners(cornerRadius))
I know unsafe operations warnings mostly happen when you have a generic ArrayList where you don't specify type, but I don't see anything wrong in the line and there is also no ArrayList in the Glide config.
¿Any ideas?