package com.tencent.mm.bp;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ah;

class d$11 implements a {
    final /* synthetic */ Context val$context;
    final /* synthetic */ Intent val$intent;
    final /* synthetic */ int val$requestCode;
    final /* synthetic */ String vwC;
    final /* synthetic */ String vwH;

    d$11(Intent intent, String str, String str2, Context context, int i) {
        this.val$intent = intent;
        this.vwC = str;
        this.vwH = str2;
        this.val$context = context;
        this.val$requestCode = i;
    }

    public final void onDone() {
        AppMethodBeat.i(114695);
        Intent intent = this.val$intent == null ? new Intent() : this.val$intent;
        intent.setClassName(ah.getPackageName(), this.vwH.startsWith(".") ? (ah.doz() + ".plugin." + this.vwC) + this.vwH : this.vwH);
        if (this.val$context instanceof Activity) {
            ((Activity) this.val$context).startActivityForResult(intent, this.val$requestCode);
            d.g(this.val$context, this.vwH, intent);
            AppMethodBeat.o(114695);
            return;
        }
        ab.f("MicroMsg.PluginHelper", "context not activity, skipped");
        AppMethodBeat.o(114695);
    }
}
