package com.tencent.mm.plugin.appbrand.dynamic.d;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ipcinvoker.c;
import com.tencent.mm.ipcinvoker.extension.XIPCInvoker;
import com.tencent.mm.kernel.b.h;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.v.b;
import com.tencent.mm.plugin.appbrand.dynamic.d.a.a;
import com.tencent.mm.z.b.b$a;
import com.tencent.sqlitelint.config.SharePluginInfo;
import com.tencent.ytcommon.BuildConfig;
import org.json.JSONObject;

public final class n extends a {
    public n() {
        super("showPickerView", 456);
    }

    public final void a(com.tencent.mm.z.c.a aVar, JSONObject jSONObject, final b$a<JSONObject> b_a) {
        AppMethodBeat.i(10864);
        b Qy = aVar.Qy();
        String string = Qy.getString("__page_view_id", BuildConfig.FLAVOR);
        Bundle bundle = new Bundle();
        bundle.putString(SharePluginInfo.ISSUE_KEY_ID, string);
        bundle.putString("data", jSONObject.toString());
        XIPCInvoker.a(Qy.getString("__process_name", ((h) g.RM().Rn()).eHT), bundle, a.class, new c<Bundle>() {
            public final /* synthetic */ void ao(Object obj) {
                Bundle bundle;
                String str;
                AppMethodBeat.i(10861);
                Bundle bundle2 = (Bundle) obj;
                boolean z = false;
                if (bundle2 != null) {
                    z = bundle2.getBoolean("ret");
                    String string = bundle2.getString("reason");
                    bundle = bundle2.getBundle("data");
                    str = string;
                } else {
                    bundle = null;
                    str = null;
                }
                b_a.au(n.this.a(z, str, bundle));
                AppMethodBeat.o(10861);
            }
        });
        AppMethodBeat.o(10864);
    }
}
