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

import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.qqmail.b.ac;
import com.tencent.mm.plugin.qqmail.b.i;
import com.tencent.mm.plugin.qqmail.b.v.a;
import com.tencent.mm.ui.base.h;
import java.io.File;
import java.util.Map;

class ComposeUI$15 extends a {
    final /* synthetic */ ComposeUI pwY;

    ComposeUI$15(ComposeUI composeUI) {
        this.pwY = composeUI;
    }

    public final void onSuccess(String str, Map<String, String> map) {
        AppMethodBeat.i(68191);
        h.a(this.pwY, 2131301968, 2131297061, new OnClickListener() {
            public final void onClick(DialogInterface dialogInterface, int i) {
                AppMethodBeat.i(68189);
                File file = new File(ac.ccC().puE.ptG.ptQ + i.cR(ComposeUI.J(ComposeUI$15.this.pwY), ComposeUI.K(ComposeUI$15.this.pwY)));
                if (file.exists()) {
                    file.delete();
                }
                ComposeUI$15.this.pwY.setResult(-1);
                ComposeUI$15.this.pwY.finish();
                AppMethodBeat.o(68189);
            }
        });
        ComposeUI.d(this.pwY).cG(this.pwY.pwf.getMailAddrs());
        ComposeUI.d(this.pwY).cG(ComposeUI.e(this.pwY).getMailAddrs());
        ComposeUI.d(this.pwY).cG(ComposeUI.f(this.pwY).getMailAddrs());
        AppMethodBeat.o(68191);
    }

    public final void onError(int i, String str) {
        AppMethodBeat.i(68192);
        if (i == -5) {
            this.pwY.pwy.a(new 2(this));
            AppMethodBeat.o(68192);
            return;
        }
        h.a(this.pwY, str, this.pwY.getString(2131301966), null);
        AppMethodBeat.o(68192);
    }

    public final void onComplete() {
        AppMethodBeat.i(68193);
        if (ComposeUI.G(this.pwY) != null) {
            ComposeUI.G(this.pwY).dismiss();
            ComposeUI.a(this.pwY, null);
        }
        AppMethodBeat.o(68193);
    }
}
