package com.bytedance.android.live.liveinteract.match.ui.view;

import X.C09630aP;
import X.C16570lb;
import X.C16590ld;
import X.C16770lv;
import X.C17330mp;
import X.G2l;
import android.animation.ValueAnimator;
import android.view.View;
import com.bytedance.android.livesdk.model.message.battle.BattleResult;
import com.bytedance.covode.number.Covode;
import java.util.Map;

public final class BattleVictoryLapActivityLayout$4 implements View.OnClickListener {
    public final /* synthetic */ C17330mp LIZ;

    static {
        Covode.recordClassIndex(7401);
    }

    public BattleVictoryLapActivityLayout$4(C17330mp r1) {
        this.LIZ = r1;
    }

    public final void onClick(View view) {
        String str;
        C09630aP.LIZ(4, "BattleVictoryLapActivityLayout", " click to refresh the tips ");
        if (!this.LIZ.LJIIJJI) {
            boolean z = true;
            this.LIZ.LJIIJJI = true;
            C09630aP.LIZ(4, "BattleVictoryLapActivityLayout", " has to refresh the tips ");
            C17330mp r1 = this.LIZ;
            r1.removeCallbacks(r1.LIZJ);
            C17330mp r12 = this.LIZ;
            r12.removeCallbacks(r12.LIZIZ);
            ValueAnimator valueAnimator = this.LIZ.LJFF;
            if (valueAnimator != null) {
                valueAnimator.removeAllUpdateListeners();
            }
            C16770lv victoryLapActivityListener = this.LIZ.getVictoryLapActivityListener();
            if (victoryLapActivityListener != null) {
                C16570lb r3 = C16570lb.LIZ;
                boolean z2 = victoryLapActivityListener.LIZ;
                BattleResult battleResult = C16590ld.LIZ.LJ;
                if (battleResult == null || battleResult.LIZIZ != 0) {
                    z = false;
                }
                Map<String, String> LIZ2 = r3.LIZ(z2);
                if (z) {
                    str = "winner";
                } else {
                    str = "loser";
                }
                LIZ2.put("pk_result", str);
                r3.LIZ("livesdk_pk_punish_activity_suggestion_change_click", LIZ2);
            }
            this.LIZ.LJIIJ = 0;
            this.LIZ.LJ();
            G2l.LIZ(this.LIZ.LIZIZ(2131366688));
            this.LIZ.LJI();
        }
    }
}
