package com.tencent.mm.plugin.appbrand.widget.desktop;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.support.v7.widget.RecyclerView.v;
import android.view.View;
import android.view.ViewPropertyAnimator;
import com.tencent.matrix.trace.core.AppMethodBeat;

class f$6 extends AnimatorListenerAdapter {
    final /* synthetic */ v ahD;
    final /* synthetic */ ViewPropertyAnimator ahE;
    final /* synthetic */ int ahF;
    final /* synthetic */ int ahG;
    final /* synthetic */ f iYC;
    final /* synthetic */ View val$view;

    f$6(f fVar, v vVar, int i, View view, int i2, ViewPropertyAnimator viewPropertyAnimator) {
        this.iYC = fVar;
        this.ahD = vVar;
        this.ahF = i;
        this.val$view = view;
        this.ahG = i2;
        this.ahE = viewPropertyAnimator;
    }

    public final void onAnimationStart(Animator animator) {
        AppMethodBeat.i(133909);
        this.iYC.F(this.ahD);
        AppMethodBeat.o(133909);
    }

    public final void onAnimationCancel(Animator animator) {
        AppMethodBeat.i(133910);
        if (this.ahF != 0) {
            this.val$view.setTranslationX(0.0f);
        }
        if (this.ahG != 0) {
            this.val$view.setTranslationY(0.0f);
        }
        AppMethodBeat.o(133910);
    }

    public final void onAnimationEnd(Animator animator) {
        AppMethodBeat.i(133911);
        this.ahE.setListener(null);
        this.iYC.C(this.ahD);
        this.iYC.ahw.remove(this.ahD);
        this.iYC.hY();
        AppMethodBeat.o(133911);
    }
}
