summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/java/android/graphics/drawable/RippleDrawable.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/graphics/java/android/graphics/drawable/RippleDrawable.java b/graphics/java/android/graphics/drawable/RippleDrawable.java
index 73e65c2ec050..8392f432847b 100644
--- a/graphics/java/android/graphics/drawable/RippleDrawable.java
+++ b/graphics/java/android/graphics/drawable/RippleDrawable.java
@@ -330,18 +330,18 @@ public class RippleDrawable extends LayerDrawable {
private void setRippleActive(boolean active) {
if (mRippleActive != active) {
mRippleActive = active;
- }
- if (mState.mRippleStyle == STYLE_SOLID) {
- if (active) {
- tryRippleEnter();
- } else {
- tryRippleExit();
- }
- } else {
- if (active) {
- startPatternedAnimation();
+ if (mState.mRippleStyle == STYLE_SOLID) {
+ if (active) {
+ tryRippleEnter();
+ } else {
+ tryRippleExit();
+ }
} else {
- exitPatternedAnimation();
+ if (active) {
+ startPatternedAnimation();
+ } else {
+ exitPatternedAnimation();
+ }
}
}
}