package com.tencent.mm.app.plugin;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler;
import com.tencent.mm.app.plugin.URISpanHandlerSet.a;
import com.tencent.mm.pluginsdk.ui.applet.m;
import com.tencent.mm.pluginsdk.ui.e.g;
import com.tencent.mm.pluginsdk.v;
import com.tencent.mm.ui.LauncherUI;

@a
class URISpanHandlerSet$FlowStatUriSpanHandler extends BaseUriSpanHandler {
    final /* synthetic */ URISpanHandlerSet cgy;

    URISpanHandlerSet$FlowStatUriSpanHandler(URISpanHandlerSet uRISpanHandlerSet) {
        this.cgy = uRISpanHandlerSet;
        super(uRISpanHandlerSet);
    }

    /* Access modifiers changed, original: final */
    public final m dr(String str) {
        AppMethodBeat.i(15659);
        if (str.trim().startsWith("weixin://flowstat")) {
            m mVar = new m(str, 16, null);
            AppMethodBeat.o(15659);
            return mVar;
        }
        AppMethodBeat.o(15659);
        return null;
    }

    /* Access modifiers changed, original: final */
    public final int[] Cm() {
        return new int[]{16};
    }

    /* Access modifiers changed, original: final */
    public final boolean a(String str, boolean z, v vVar, Bundle bundle) {
        AppMethodBeat.i(15661);
        if (str.equals("weixin://flowstat")) {
            LauncherUI instance = LauncherUI.getInstance();
            if (instance != null) {
                instance.yjJ.getMainTabUI().aqG("tab_settings");
            }
            AppMethodBeat.o(15661);
            return true;
        }
        AppMethodBeat.o(15661);
        return false;
    }

    /* Access modifiers changed, original: final */
    public final boolean a(m mVar, g gVar) {
        AppMethodBeat.i(15660);
        if (mVar.type == 16) {
            if (gVar != null) {
                gVar.a(mVar);
            }
            LauncherUI instance = LauncherUI.getInstance();
            if (instance != null) {
                instance.yjJ.getMainTabUI().aqG("tab_settings");
            }
            if (gVar != null) {
                gVar.b(mVar);
            }
            AppMethodBeat.o(15660);
            return true;
        }
        AppMethodBeat.o(15660);
        return false;
    }
}
