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

Commit e9077ac2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix image resizing" into udc-dev am: cdab1b87

parents 7b3b7340 cdab1b87
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7475,10 +7475,10 @@ public class Notification implements Parcelable
            Resources resources = context.getResources();
            boolean isLowRam = ActivityManager.isLowRamDeviceStatic();
            if (mPictureIcon != null) {
                int maxPictureWidth = resources.getDimensionPixelSize(isLowRam
                int maxPictureHeight = resources.getDimensionPixelSize(isLowRam
                        ? R.dimen.notification_big_picture_max_height_low_ram
                        : R.dimen.notification_big_picture_max_height);
                int maxPictureHeight = resources.getDimensionPixelSize(isLowRam
                int maxPictureWidth = resources.getDimensionPixelSize(isLowRam
                        ? R.dimen.notification_big_picture_max_width_low_ram
                        : R.dimen.notification_big_picture_max_width);
                mPictureIcon.scaleDownIfNecessary(maxPictureWidth, maxPictureHeight);