package androidx.swiperefreshlayout.widget;

import android.view.animation.Animation;

/* JADX INFO: loaded from: classes.dex */
public final class f implements Animation.AnimationListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f4325a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ SwipeRefreshLayout f4326b;

    public /* synthetic */ f(SwipeRefreshLayout swipeRefreshLayout, int i10) {
        this.f4325a = i10;
        this.f4326b = swipeRefreshLayout;
    }

    @Override // android.view.animation.Animation.AnimationListener
    public final void onAnimationEnd(Animation animation) {
        j jVar;
        int i10 = this.f4325a;
        SwipeRefreshLayout swipeRefreshLayout = this.f4326b;
        switch (i10) {
            case 0:
                if (!swipeRefreshLayout.mRefreshing) {
                    swipeRefreshLayout.reset();
                } else {
                    swipeRefreshLayout.mProgress.setAlpha(255);
                    swipeRefreshLayout.mProgress.start();
                    if (swipeRefreshLayout.mNotify && (jVar = swipeRefreshLayout.mListener) != null) {
                        jVar.onRefresh();
                    }
                    swipeRefreshLayout.mCurrentTargetOffsetTop = swipeRefreshLayout.mCircleView.getTop();
                }
                break;
            default:
                if (!swipeRefreshLayout.mScale) {
                    swipeRefreshLayout.startScaleDownAnimation(null);
                }
                break;
        }
    }

    @Override // android.view.animation.Animation.AnimationListener
    public final void onAnimationRepeat(Animation animation) {
    }

    @Override // android.view.animation.Animation.AnimationListener
    public final void onAnimationStart(Animation animation) {
    }
}
