package com.tencent.mm.plugin.shake.c.b;

import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.shake.c.b.a.a;
import com.tencent.mm.sdk.platformtools.ab;

class a$2 implements OnClickListener {
    final /* synthetic */ a qtg;

    a$2(a aVar) {
        this.qtg = aVar;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(24548);
        if (view.getId() == 2131827470) {
            this.qtg.dismiss();
            if (a.a(this.qtg) != null) {
                a.a(this.qtg).ckg();
            }
            ab.i("MicroMsg.ShakeCardDialog", "close ShakeCardDialog");
            AppMethodBeat.o(24548);
            return;
        }
        if (view.getId() == 2131821929) {
            if (a.b(this.qtg) == a.qti) {
                a.a(this.qtg, a.qtj);
                a.a(this.qtg, 0);
                a.c(this.qtg);
                a.d(this.qtg);
                AppMethodBeat.o(24548);
                return;
            } else if (a.b(this.qtg) != a.qtj) {
                if (a.b(this.qtg) == a.qtl) {
                    a.d(this.qtg);
                    AppMethodBeat.o(24548);
                    return;
                } else if (a.b(this.qtg) == a.qtk) {
                    com.tencent.mm.sdk.b.a.xxA.c(a.e(this.qtg));
                    a.f(this.qtg);
                }
            }
        }
        AppMethodBeat.o(24548);
    }
}
