fixes to make Picasso Image Loader work

This library is used by newer NewPipe versions
This commit is contained in:
Julian Winkler
2023-10-08 22:50:28 +02:00
parent 520d153c55
commit 4130e252cc
5 changed files with 25 additions and 14 deletions

View File

@@ -63,7 +63,11 @@ public class ImageView extends View {
return new BitmapDrawable(getContext().getResources(), bitmap);
}
public void setImageDrawable(Drawable drawable) {}
public void setImageDrawable(Drawable drawable) {
if (drawable instanceof BitmapDrawable) {
setImageBitmap(((BitmapDrawable) drawable).getBitmap());
}
}
public void setImageMatrix(Matrix matrix) {}