package com.tencent.mm.plugin.appbrand.jsapi;

import android.content.Context;
import android.content.Intent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bp.d;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.pluginsdk.wallet.f;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.MMActivity.a;

class be$1 implements a {
    final /* synthetic */ int eIl;
    final /* synthetic */ c hxc;
    final /* synthetic */ Context hym;
    final /* synthetic */ be hyq;

    be$1(be beVar, Context context, c cVar, int i) {
        this.hyq = beVar;
        this.hym = context;
        this.hxc = cVar;
        this.eIl = i;
    }

    public final void c(int i, int i2, Intent intent) {
        AppMethodBeat.i(130526);
        ab.d("MicroMsg.JsApiOpenWCPayLQTSave", "activity result: %s, %s", new Object[]{Integer.valueOf(i), Integer.valueOf(i2)});
        if (i == (this.hyq.hashCode() & 65535)) {
            if (i2 == -1) {
                d.b(this.hym, "wallet", ".balance.ui.lqt.WalletLqtBeforeSaveUI", new Intent(), this.hyq.hashCode() & 65534);
                this.hxc.M(this.eIl, this.hyq.j("ok", null));
            } else {
                this.hxc.M(this.eIl, this.hyq.j("fail", null));
                if (!f.dlH()) {
                    h.pYm.e(14954, new Object[]{f.dlI(), "JsApiOpenWCPayLQTSave:fail"});
                }
            }
            if (!f.dlH()) {
                f.dlJ();
                AppMethodBeat.o(130526);
                return;
            }
        } else if (i != (this.hyq.hashCode() & 65534)) {
            ab.d("MicroMsg.JsApiOpenWCPayLQTSave", "beforeSave callback");
            if (i2 == -1) {
                this.hxc.M(this.eIl, this.hyq.j("ok", null));
                AppMethodBeat.o(130526);
                return;
            }
            this.hxc.M(this.eIl, this.hyq.j("fail", null));
        }
        AppMethodBeat.o(130526);
    }
}
