Merge "Fix RippleDrawable alpha" into udc-dev am: 0814c2ddc8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23331504 Change-Id: I3e2b1b602e2b133729340d04a3a861745d4d9c67 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -72,9 +72,9 @@
|
|||||||
<item name="secondary_content_alpha_material_dark" format="float" type="dimen">.7</item>
|
<item name="secondary_content_alpha_material_dark" format="float" type="dimen">.7</item>
|
||||||
<item name="secondary_content_alpha_material_light" format="float" type="dimen">0.60</item>
|
<item name="secondary_content_alpha_material_light" format="float" type="dimen">0.60</item>
|
||||||
|
|
||||||
<item name="highlight_alpha_material_light" format="float" type="dimen">0.5</item>
|
<item name="highlight_alpha_material_light" format="float" type="dimen">0.20</item>
|
||||||
<item name="highlight_alpha_material_dark" format="float" type="dimen">0.5</item>
|
<item name="highlight_alpha_material_dark" format="float" type="dimen">0.20</item>
|
||||||
<item name="highlight_alpha_material_colored" format="float" type="dimen">0.10</item>
|
<item name="highlight_alpha_material_colored" format="float" type="dimen">0.20</item>
|
||||||
|
|
||||||
<!-- Primary & accent colors -->
|
<!-- Primary & accent colors -->
|
||||||
<eat-comment />
|
<eat-comment />
|
||||||
|
|||||||
@@ -1013,7 +1013,8 @@ public class RippleDrawable extends LayerDrawable {
|
|||||||
}
|
}
|
||||||
p.setShader(shader);
|
p.setShader(shader);
|
||||||
p.setColorFilter(null);
|
p.setColorFilter(null);
|
||||||
p.setColor(color);
|
// Alpha is handled by the shader (and color is a no-op because there's a shader)
|
||||||
|
p.setColor(0xFF000000);
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user