summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-06-19 13:42:39 -0700
committerAlan Viverette <alanv@google.com>2015-06-19 13:42:39 -0700
commit690a16c35031b4474f429de1967d6738f9d00322 (patch)
treeb388c6a40e89d0dbf2ab4c8ea5d3d55da68f8bca /graphics/java
parentf3e8dca84b51e6eab1cc1384a5baabb0bae433a1 (diff)
downloadframeworks_base-690a16c35031b4474f429de1967d6738f9d00322.zip
frameworks_base-690a16c35031b4474f429de1967d6738f9d00322.tar.gz
frameworks_base-690a16c35031b4474f429de1967d6738f9d00322.tar.bz2
Invalidate the cached ripple drawable mask if mask layer changes
Bug: 21955350 Change-Id: I2e610a5a0af39668b7e9447cfd7d48d35e11d299
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/drawable/RippleDrawable.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/drawable/RippleDrawable.java b/graphics/java/android/graphics/drawable/RippleDrawable.java
index 134451b..6369833 100644
--- a/graphics/java/android/graphics/drawable/RippleDrawable.java
+++ b/graphics/java/android/graphics/drawable/RippleDrawable.java
@@ -423,6 +423,7 @@ public class RippleDrawable extends LayerDrawable {
if (super.setDrawableByLayerId(id, drawable)) {
if (id == R.id.mask) {
mMask = drawable;
+ mHasValidMask = false;
}
return true;