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

Commit 8157fac6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
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."
parents 671d2ee6 3daed108
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
@@ -3389,6 +3389,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"/>