Skip to content

Commit 8dcc8b3

Browse files
committed
change API
1 parent e64c7e3 commit 8dcc8b3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

multistatelayout/src/main/java/cn/refactor/multistatelayout/MultiStateLayout.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,12 @@ private void execAlphaAnimation(View targetView) {
534534
return;
535535
}
536536

537-
if (null == mTransitionAnimatorLoader || null == mTransitionAnimatorLoader.loadAnimator(targetView)) {
537+
if (null == mTransitionAnimatorLoader || null == mTransitionAnimatorLoader.onCreateAnimator(targetView)) {
538538
mAlphaAnimator = ObjectAnimator.ofFloat(targetView, "alpha", 0.0f, 1.0f);
539539
mAlphaAnimator.setInterpolator(new AccelerateInterpolator());
540540
mAlphaAnimator.setDuration(mAnimDuration);
541541
} else {
542-
mAlphaAnimator = mTransitionAnimatorLoader.loadAnimator(targetView);
542+
mAlphaAnimator = mTransitionAnimatorLoader.onCreateAnimator(targetView);
543543
}
544544
mAlphaAnimator.start();
545545
}

multistatelayout/src/main/java/cn/refactor/multistatelayout/TransitionAnimatorLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ public interface TransitionAnimatorLoader {
1515
* @param targetView target view
1616
* @return animator
1717
*/
18-
ObjectAnimator loadAnimator(View targetView);
18+
ObjectAnimator onCreateAnimator(View targetView);
1919
}

0 commit comments

Comments
 (0)