package com.tencent.mm.plugin.webview.ui.tools;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.webview.ui.tools.jsapi.d;
import com.tencent.mm.sdk.platformtools.ab;

class n$55 implements Runnable {
    final /* synthetic */ int nx;
    final /* synthetic */ Boolean uuR;
    final /* synthetic */ WebViewUI uul;
    final /* synthetic */ d uum;
    final /* synthetic */ k uun;
    final /* synthetic */ n uuo;
    final /* synthetic */ String uuv;

    n$55(n nVar, WebViewUI webViewUI, d dVar, k kVar, String str, int i, Boolean bool) {
        this.uuo = nVar;
        this.uul = webViewUI;
        this.uum = dVar;
        this.uun = kVar;
        this.uuv = str;
        this.nx = i;
        this.uuR = bool;
    }

    public final void run() {
        boolean z = false;
        AppMethodBeat.i(7772);
        if (this.uul == null || this.uul.isFinishing()) {
            AppMethodBeat.o(7772);
        } else if (this.uum != null && this.uun != null && this.uun.cZS() != null) {
            this.uun.cZS();
            this.uum.dG(this.uuv, this.nx);
            AppMethodBeat.o(7772);
        } else if (this.uum == null || !this.uuR.booleanValue()) {
            boolean z2;
            String str = "MicroMsg.WebViewStubCallbackAIDLStub";
            String str2 = "something null, %s, %s";
            Object[] objArr = new Object[2];
            if (this.uum == null) {
                z2 = true;
            } else {
                z2 = false;
            }
            objArr[0] = Boolean.valueOf(z2);
            if (this.uun == null) {
                z = true;
            }
            objArr[1] = Boolean.valueOf(z);
            ab.w(str, str2, objArr);
            AppMethodBeat.o(7772);
        } else {
            this.uum.dG(this.uuv, this.nx);
            AppMethodBeat.o(7772);
        }
    }
}
