Merge "Update ripple mask when invalidated" into sc-dev am: 6836ab8607 am: 3b74a0f79e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14443376 Change-Id: Ib66f29b07d2bdf1ce2ae41729a67ae6ee63fde16
This commit is contained in:
@@ -864,6 +864,10 @@ public class RippleDrawable extends LayerDrawable {
|
||||
boolean shouldExit = mExitingAnimation;
|
||||
mRippleActive = false;
|
||||
mExitingAnimation = false;
|
||||
if (mRunningAnimations.size() > 0 && !shouldAnimate) {
|
||||
// update paint when view is invalidated
|
||||
getRipplePaint();
|
||||
}
|
||||
drawContent(canvas);
|
||||
drawPatternedBackground(canvas, cx, cy);
|
||||
if (shouldAnimate && mRunningAnimations.size() <= MAX_RIPPLES) {
|
||||
|
||||
Reference in New Issue
Block a user