Rename RippleOldBackground to RippleBackground
This commit is contained in:
1 parent
023887dfac
commit
bd1956a89f
2 files changed
+5
-5
No files matched your search
+3
-3
@@ -31,7 +31,7 @@ import com.nineoldandroids.animation.ObjectAnimator;
|
||||
/**
|
||||
* Draws a Material ripple.
|
||||
*/
|
||||
class RippleOldBackground {
|
||||
class RippleBackground {
|
||||
private static final Interpolator LINEAR_INTERPOLATOR = new LinearInterpolator();
|
||||
|
||||
private static final float GLOBAL_SPEED = 1.0f;
|
||||
@@ -73,7 +73,7 @@ class RippleOldBackground {
|
||||
/**
|
||||
* Creates a new ripple.
|
||||
*/
|
||||
public RippleOldBackground(RippleOwner owner, Rect bounds) {
|
||||
public RippleBackground(RippleOwner owner, Rect bounds) {
|
||||
mOwner = owner;
|
||||
mBounds = bounds;
|
||||
}
|
||||
@@ -228,7 +228,7 @@ class RippleOldBackground {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
final ObjectAnimator outerFadeOutAnim = ObjectAnimator.ofFloat(
|
||||
RippleOldBackground.this, "outerOpacity", 0);
|
||||
RippleBackground.this, "outerOpacity", 0);
|
||||
outerFadeOutAnim.setAutoCancel(true);
|
||||
outerFadeOutAnim.setDuration(outerDuration);
|
||||
outerFadeOutAnim.setInterpolator(LINEAR_INTERPOLATOR);
|
||||
@@ -87,7 +87,7 @@ public class RippleOldDrawable extends Drawable implements RippleOwner, Hotspota
|
||||
private final Rect mHotspotBounds = new Rect();
|
||||
|
||||
/** The current background. May be actively animating or pending entry. */
|
||||
private RippleOldBackground mBackground;
|
||||
private RippleBackground mBackground;
|
||||
|
||||
/** Whether we expect to draw a background when visible. */
|
||||
private boolean mBackgroundActive;
|
||||
@@ -312,7 +312,7 @@ public class RippleOldDrawable extends Drawable implements RippleOwner, Hotspota
|
||||
*/
|
||||
private void tryBackgroundEnter() {
|
||||
if (mBackground == null) {
|
||||
mBackground = new RippleOldBackground(this, mHotspotBounds);
|
||||
mBackground = new RippleBackground(this, mHotspotBounds);
|
||||
}
|
||||
|
||||
final int color = mColor.getColorForState(getState(), Color.TRANSPARENT);
|
||||
|
||||
Reference in new issue
Block a user