summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2023-02-24 16:43:31 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-02-24 16:43:31 +0000
commitcdab1b8766f94fa08c8736ebed2d7b76c639bb38 (patch)
tree26f1a5f3a4c3a3d1a3cc912f254a07c2dc6fcf7f
parent81dc268efc16ed0ace2dff562a474fdd062ee36c (diff)
parentb46121f82f0bbc394691d33e50de706a727b2b4d (diff)
Merge "Fix image resizing" into udc-dev
-rw-r--r--core/java/android/app/Notification.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index ef5cd9334be7..251fd26b0e26 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -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);