package com.tencent.mm.plugin.fav.ui;

import android.app.Activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.support.v4.app.Fragment;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ui.widget.snackbar.a.b;
import com.tencent.mm.ui.widget.snackbar.a.c;

class c$5 implements OnClickListener {
    final /* synthetic */ OnClickListener mif;
    final /* synthetic */ b mig;
    final /* synthetic */ c mih;
    final /* synthetic */ Activity val$activity;
    final /* synthetic */ Fragment val$fragment;

    c$5(OnClickListener onClickListener, Fragment fragment, b bVar, c cVar, Activity activity) {
        this.mif = onClickListener;
        this.val$fragment = fragment;
        this.mig = bVar;
        this.mih = cVar;
        this.val$activity = activity;
    }

    public final void onClick(DialogInterface dialogInterface, int i) {
        AppMethodBeat.i(73981);
        dialogInterface.dismiss();
        if (this.mif != null) {
            this.mif.onClick(dialogInterface, -2);
        }
        if (this.val$fragment != null) {
            com.tencent.mm.ui.widget.snackbar.b.a(this.val$fragment, this.val$fragment.getActivity().getString(2131299673), this.val$fragment.getActivity().getString(2131299590), this.mig, this.mih);
            AppMethodBeat.o(73981);
            return;
        }
        com.tencent.mm.ui.widget.snackbar.b.a(this.val$activity, this.val$activity.getString(2131299673), this.val$activity.getString(2131299590), this.mig, this.mih);
        AppMethodBeat.o(73981);
    }
}
