Merge "Put starting the animation back inside state changed check" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7395d119e6
@@ -331,18 +331,18 @@ public class RippleDrawable extends LayerDrawable {
|
|||||||
private void setRippleActive(boolean active) {
|
private void setRippleActive(boolean active) {
|
||||||
if (mRippleActive != active) {
|
if (mRippleActive != active) {
|
||||||
mRippleActive = active;
|
mRippleActive = active;
|
||||||
}
|
if (mState.mRippleStyle == STYLE_SOLID) {
|
||||||
if (mState.mRippleStyle == STYLE_SOLID) {
|
if (active) {
|
||||||
if (active) {
|
tryRippleEnter();
|
||||||
tryRippleEnter();
|
} else {
|
||||||
|
tryRippleExit();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
tryRippleExit();
|
if (active) {
|
||||||
}
|
startPatternedAnimation();
|
||||||
} else {
|
} else {
|
||||||
if (active) {
|
exitPatternedAnimation();
|
||||||
startPatternedAnimation();
|
}
|
||||||
} else {
|
|
||||||
exitPatternedAnimation();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user