Merge "Put starting the animation back inside state changed check" into sc-dev am: 7395d119e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14940219 Change-Id: I0ce535a0031c2a743a9955af32314d4ba9c5f3b7
This commit is contained in:
@@ -331,18 +331,18 @@ public class RippleDrawable extends LayerDrawable {
|
||||
private void setRippleActive(boolean active) {
|
||||
if (mRippleActive != active) {
|
||||
mRippleActive = active;
|
||||
}
|
||||
if (mState.mRippleStyle == STYLE_SOLID) {
|
||||
if (active) {
|
||||
tryRippleEnter();
|
||||
if (mState.mRippleStyle == STYLE_SOLID) {
|
||||
if (active) {
|
||||
tryRippleEnter();
|
||||
} else {
|
||||
tryRippleExit();
|
||||
}
|
||||
} else {
|
||||
tryRippleExit();
|
||||
}
|
||||
} else {
|
||||
if (active) {
|
||||
startPatternedAnimation();
|
||||
} else {
|
||||
exitPatternedAnimation();
|
||||
if (active) {
|
||||
startPatternedAnimation();
|
||||
} else {
|
||||
exitPatternedAnimation();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user