package com.tencent.mm.plugin.webview.fts;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.websearch.api.s;
import com.tencent.mm.plugin.webview.fts.f.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

public class f$a$a implements Runnable {
    s fpL;
    public volatile boolean jxQ;
    final /* synthetic */ a ugb;

    private f$a$a(a aVar) {
        this.ugb = aVar;
    }

    public final void run() {
        AppMethodBeat.i(5724);
        if (Thread.interrupted()) {
            AppMethodBeat.o(5724);
        } else if (bo.isNullOrNil(this.fpL.ctj)) {
            ab.i("MicroMsg.TopStory.RecommendLogic", "error query %d %d %d %d %s %d", new Object[]{Integer.valueOf(this.fpL.businessType), Integer.valueOf(this.fpL.scene), Integer.valueOf(this.fpL.tZw), Integer.valueOf(this.fpL.cIC), this.fpL.lcA, Integer.valueOf(this.fpL.offset)});
            AppMethodBeat.o(5724);
        } else {
            ab.i("MicroMsg.TopStory.RecommendLogic", "start New NetScene %s ,  %d", new Object[]{this.fpL.ctj, Integer.valueOf(this.fpL.cIv)});
            if (a.a(this.ugb) != null) {
                g.Rg().c(a.a(this.ugb));
            }
            if (this.jxQ) {
                ab.i("MicroMsg.TopStory.RecommendLogic", "was cancelled");
                AppMethodBeat.o(5724);
                return;
            }
            com.tencent.mm.plugin.webview.modeltools.g.cYC().ufm.m(this.fpL.scene, this.fpL.ctj, this.fpL.businessType);
            a.a(this.ugb, a.a(this.fpL));
            g.Rg().a(a.a(this.ugb).getType(), this.ugb.ufV);
            g.Rg().a(a.a(this.ugb), 0);
            ab.i("MicroMsg.TopStory.RecommendLogic", "doScene(type : %s)", new Object[]{Integer.valueOf(a.a(this.ugb).getType())});
            AppMethodBeat.o(5724);
        }
    }
}
