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

Commit e925e7d4 authored by Shai Barack's avatar Shai Barack
Browse files

noteSlowCall when downscaling oversized MediaMetadata Bitmap

Bug: 420114740
Flag: EXEMPT StrictMode change only
Change-Id: Iec04344e49c899639d99ff4ef3b851b0af6d88ac
parent d25e2af1
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);
        }
    }