Fix failing RippleShaderTest

Bug: 270197061
Test: atest RippleShaderTest
Change-Id: I171d8c43aaf6fc087dc3fac032e7177e65c5aa6a
This commit is contained in:
Yein Jo
2023-02-21 22:13:51 +00:00
parent 657aa09392
commit 8e869dce13

View File

@@ -431,8 +431,9 @@ class RippleShader(rippleShape: RippleShape = RippleShape.CIRCLE) :
"[setSizeAtProgresses] before playing the animation."
)
}
// If there's no size is set, we set everything to 0.
// If there's no size is set, we set everything to 0 and return early.
setSizeAtProgresses(initialSize)
return currentSizeIndex
}
var candidate = sizes[currentSizeIndex]