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

Commit 55e52fcf authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Delete size limitation for ContrastColorUtil.isGrayScale() method. loss...

Merge "Delete size limitation for ContrastColorUtil.isGrayScale() method. loss of performance is tiny because, image will be resized at ImageUtil.isGrayscale() method." am: 8157fac6

Change-Id: I3abd10637d164a5501d380af70ae2a98afbc84bb
parents 9593b26e 8157fac6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ public class ContrastColorUtil {

    private ContrastColorUtil(Context context) {
        mGrayscaleIconMaxSize = context.getResources().getDimensionPixelSize(
                com.android.internal.R.dimen.notification_large_icon_width);
                com.android.internal.R.dimen.notification_grayscale_icon_max_size);
    }

    /**
+2 −0
Original line number Diff line number Diff line
@@ -680,6 +680,8 @@
    <dimen name="notification_media_image_max_width_low_ram">100dp</dimen>
    <!-- The size of the right icon image when on low ram -->
    <dimen name="notification_right_icon_size_low_ram">@dimen/notification_right_icon_size</dimen>
    <!-- The maximum size of the grayscale icon -->
    <dimen name="notification_grayscale_icon_max_size">256dp</dimen>

    <dimen name="messaging_avatar_size">@dimen/notification_right_icon_size</dimen>

+1 −0
Original line number Diff line number Diff line
@@ -3397,6 +3397,7 @@
  <java-symbol type="dimen" name="notification_media_image_max_width_low_ram"/>
  <java-symbol type="dimen" name="notification_media_image_max_height_low_ram"/>
  <java-symbol type="dimen" name="notification_right_icon_size_low_ram"/>
  <java-symbol type="dimen" name="notification_grayscale_icon_max_size"/>
  <java-symbol type="dimen" name="notification_custom_view_max_image_height_low_ram"/>
  <java-symbol type="dimen" name="notification_custom_view_max_image_width_low_ram"/>