OSDN Git Service

Fix broken resource definition.
authorCalvin On <con@google.com>
Thu, 26 Apr 2018 19:17:02 +0000 (12:17 -0700)
committerCalvin On <con@google.com>
Thu, 26 Apr 2018 21:06:32 +0000 (14:06 -0700)
notification_right_icon_size_low_ram appears to have been
circularly defined. This reverts the change made to this
field in ag/3938119.

Since the original CL reduced dp value of icon sizes, this
fix also does a best effort/proportional change to the
dp value of the icon, to 38dp (from 40dp).

Test: Build and install on sawfish, crash no longer repros.
Bug: 78598699
Change-Id: I73309fb39cc7cbc286e5a0cec69900590d3f0f54

core/res/res/values/dimens.xml

index 860dd87..45814ea 100644 (file)
     <!-- The maximum width of a image in a media notification. The images will be reduced to that width in case they are bigger.-->
     <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_low_ram</dimen>
+    <dimen name="notification_right_icon_size_low_ram">38dp</dimen>
 
     <dimen name="messaging_avatar_size">@dimen/notification_right_icon_size</dimen>