diff options
author | Alan Viverette <alanv@google.com> | 2014-04-16 17:56:29 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2014-04-16 17:56:29 -0700 |
commit | dccbe8b02a34a3c78028a31ee158d4d2818c72ba (patch) | |
tree | 5aa7821cfc07189ac35c3c0e9d42df75b031a0cb /graphics | |
parent | 70802d2501dd5607ca0f38d7aa36771d9e0c7b20 (diff) | |
download | frameworks_base-dccbe8b02a34a3c78028a31ee158d4d2818c72ba.zip frameworks_base-dccbe8b02a34a3c78028a31ee158d4d2818c72ba.tar.gz frameworks_base-dccbe8b02a34a3c78028a31ee158d4d2818c72ba.tar.bz2 |
Fix alert dialog alignment and touch feedback masking
BUG: 13905057
Change-Id: Ia2bf4d170370c83f4ea863ecae24fffecc6fc020
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java b/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java index 3773a49..5f59467 100644 --- a/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java +++ b/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java @@ -44,6 +44,8 @@ import java.io.IOException; * Documentation pending. */ public class TouchFeedbackDrawable extends LayerDrawable { + private static final PorterDuffXfermode DST_IN = new PorterDuffXfermode(Mode.DST_IN); + /** The maximum number of ripples supported. */ private static final int MAX_RIPPLES = 10; @@ -397,7 +399,7 @@ public class TouchFeedbackDrawable extends LayerDrawable { if (mask != null && drewRipples) { // TODO: This will also mask the lower layer, which is bad. canvas.saveLayer(bounds.left, bounds.top, bounds.right, - bounds.bottom, getMaskingPaint(mState.mTintXfermode), 0); + bounds.bottom, getMaskingPaint(DST_IN), 0); mask.draw(canvas); } |