Skip to content

Commit

Permalink
Update app/src/main/java/org/schabi/newpipe/util/PicassoHelper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Stypox authored Nov 29, 2022
1 parent 814e0f7 commit 75312c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public Bitmap transform(final Bitmap source) {
null,
true);

if (result == source && !result.isMutable()) {
if (result == source || !result.isMutable()) {
// create a new mutable bitmap to prevent strange crashes on some
// devices (see #4638)
final Bitmap copied = BitmapCompat.createScaledBitmap(
Expand Down

0 comments on commit 75312c3

Please sign in to comment.