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

Commit b46121f8 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix image resizing

Swap height and width
Test: view BigPictureStyle notification in shade
Fixes: 270261046

Change-Id: Ifd40f74f9d319406779918b31426e06adbebcf97
parent d4b1f2ee
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);