Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68cb0d5f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "noteSlowCall when downscaling oversized MediaMetadata Bitmap" into main

parents c42a5d06 e925e7d4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.StrictMode;
import android.text.TextUtils;
import android.util.ArrayMap;
import android.util.Log;
@@ -982,6 +983,7 @@ public final class MediaMetadata implements Parcelable {
            float scale = Math.min(widthScale, heightScale);
            int height = (int) (bmp.getHeight() * scale);
            int width = (int) (bmp.getWidth() * scale);
            StrictMode.noteSlowCall("Downscaling oversized MediaMetadata Bitmap");
            return Bitmap.createScaledBitmap(bmp, width, height, true);
        }
    }