package com.tencent.mm.plugin.luckymoney.f2f.ui;

import android.animation.ValueAnimator;
import android.util.Pair;
import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.luckymoney.f2f.ui.ShuffleView.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class LuckyMoneyF2FQRCodeUI$4 implements a {
    final /* synthetic */ LuckyMoneyF2FQRCodeUI nVw;

    LuckyMoneyF2FQRCodeUI$4(LuckyMoneyF2FQRCodeUI luckyMoneyF2FQRCodeUI) {
        this.nVw = luckyMoneyF2FQRCodeUI;
    }

    public final void a(ValueAnimator valueAnimator, View view) {
        AppMethodBeat.i(42173);
        float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
        if (floatValue == 0.0f) {
            LuckyMoneyF2FQRCodeUI.a(this.nVw, view.getTranslationX());
            LuckyMoneyF2FQRCodeUI.b(this.nVw, view.getTranslationY());
            view.findViewById(2131825501).setVisibility(0);
        }
        view.setTranslationX((1.0f - floatValue) * LuckyMoneyF2FQRCodeUI.A(this.nVw));
        view.setTranslationY(((1.0f - floatValue) * LuckyMoneyF2FQRCodeUI.B(this.nVw)) - ((((float) LuckyMoneyF2FQRCodeUI.c(this.nVw).getHeight()) + (LuckyMoneyF2FQRCodeUI.B(this.nVw) * 8.0f)) * floatValue));
        view.setScaleX((0.5f * floatValue) + 1.0f);
        view.setScaleY((0.5f * floatValue) + 1.0f);
        Pair pair = (Pair) LuckyMoneyF2FQRCodeUI.f(this.nVw).peek();
        if (!(pair == null || bo.isNullOrNil(LuckyMoneyF2FQRCodeUI.C(this.nVw)) || !LuckyMoneyF2FQRCodeUI.C(this.nVw).equals(pair.first))) {
            LuckyMoneyF2FQRCodeUI.D(this.nVw).setAlpha(floatValue);
        }
        ab.i("LuckyMoneyF2FQRCodeUI", "fireworkBottomLayer %f", new Object[]{Float.valueOf(floatValue)});
        if (floatValue >= 0.9f) {
            view.setAlpha((1.0f - floatValue) * 10.0f);
            LuckyMoneyF2FQRCodeUI.E(this.nVw).setAlpha(1.0f - ((1.0f - floatValue) * 10.0f));
            LuckyMoneyF2FQRCodeUI.E(this.nVw).setScaleX(floatValue);
            LuckyMoneyF2FQRCodeUI.E(this.nVw).setScaleY(floatValue);
            LuckyMoneyF2FQRCodeUI.E(this.nVw).setVisibility(0);
        }
        if (floatValue == 1.0f) {
            LuckyMoneyF2FQRCodeUI.F(this.nVw).jU("packet_received.m4a");
            LuckyMoneyF2FQRCodeUI.c(this.nVw).removeView(LuckyMoneyF2FQRCodeUI.c(this.nVw).getExitView());
            LuckyMoneyF2FQRCodeUI.G(this.nVw);
            LuckyMoneyF2FQRCodeUI.H(this.nVw).start();
        }
        AppMethodBeat.o(42173);
    }
}
