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

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ipcinvoker.e;
import com.tencent.mm.ipcinvoker.f;
import com.tencent.mm.modelappbrand.ab;
import com.tencent.mm.modelappbrand.ac;
import com.tencent.mm.modelappbrand.u;
import com.tencent.mm.plugin.appbrand.dynamic.a;
import com.tencent.mm.plugin.appbrand.dynamic.a.1;
import com.tencent.mm.plugin.appbrand.dynamic.a.c;
import com.tencent.mm.plugin.appbrand.dynamic.i;
import com.tencent.sqlitelint.config.SharePluginInfo;
import com.tencent.ytcommon.BuildConfig;

public class IPCDynamicPageView$3 implements Runnable {
    final /* synthetic */ Bundle hkY;
    final /* synthetic */ IPCDynamicPageView hpw;
    final /* synthetic */ ab hpx;
    final /* synthetic */ String val$appId;
    final /* synthetic */ String val$id;

    public IPCDynamicPageView$3(IPCDynamicPageView iPCDynamicPageView, String str, Bundle bundle, ab abVar, String str2) {
        this.hpw = iPCDynamicPageView;
        this.val$id = str;
        this.hkY = bundle;
        this.hpx = abVar;
        this.val$appId = str2;
    }

    public final void run() {
        AppMethodBeat.i(11039);
        if (!(IPCDynamicPageView.e(this.hpw) == null || this.val$id.equals(IPCDynamicPageView.e(this.hpw)))) {
            this.hpw.detach();
        }
        IPCDynamicPageView.a(this.hpw, this.val$id);
        IPCDynamicPageView.d(this.hpw).setTraceId(IPCDynamicPageView.e(this.hpw));
        IPCDynamicPageView.a(this.hpw, this.hkY);
        IPCDynamicPageView.a(this.hpw, new ac(this.hpx));
        a f = IPCDynamicPageView.f(this.hpw);
        String str = this.val$id;
        String str2 = this.val$appId;
        Bundle bundle = this.hkY;
        f.eIq = str;
        String str3 = "Token#" + System.nanoTime();
        f.hkV = str3;
        Bundle bundle2 = new Bundle();
        bundle2.putString(SharePluginInfo.ISSUE_KEY_ID, str);
        bundle2.putString("appId", str2);
        if (bundle != null) {
            bundle2.putInt("scene", bundle.getInt("scene"));
            bundle2.putInt("widgetType", bundle.getInt("widget_type"));
            bundle2.putInt("serviceType", bundle.getInt("service_type"));
            bundle2.putInt("wxaPkgType", bundle.getInt("msg_pkg_type"));
            bundle2.putString("searchId", bundle.getString("search_id", BuildConfig.FLAVOR));
            bundle2.putInt("pkgVersion", bundle.getInt("pkg_version"));
            bundle2.putString("preloadLaunchData", bundle.getString("preload_launch_data", BuildConfig.FLAVOR));
            bundle2.putString("preload_download_data", bundle.getString("preload_download_data", BuildConfig.FLAVOR));
            bundle2.putString("cache_key", bundle.getString("cache_key", BuildConfig.FLAVOR));
        }
        bundle2.putString("view_process_name", e.PN());
        u.i("MicroMsg.DynamicIPCJsBridge", " attach %s， process %s", new Object[]{str, i.azC().zV(str)});
        f.a(i.azC().zV(str), bundle2, c.class, new 1(f, str3, str, str2, bundle));
        IPCDynamicPageView.b(this.hpw, false);
        AppMethodBeat.o(11039);
    }
}
