package com.tencent.mm.app.plugin;

import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.gms.common.util.CrashUtils.ErrorDialogData;
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.bp.d;
import com.tencent.mm.pluginsdk.ui.applet.m;
import com.tencent.mm.pluginsdk.ui.e.g;
import com.tencent.mm.pluginsdk.v;

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

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

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

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

    /* Access modifiers changed, original: final */
    public final boolean a(m mVar, g gVar) {
        return false;
    }

    /* Access modifiers changed, original: final */
    public final boolean a(String str, boolean z, v vVar, Bundle bundle) {
        AppMethodBeat.i(15685);
        if (str.equals("weixin://plugin")) {
            Intent intent = new Intent();
            if (URISpanHandlerSet.a(this.cgy) instanceof Service) {
                intent.addFlags(ErrorDialogData.BINDER_CRASH);
            }
            d.b(URISpanHandlerSet.a(this.cgy), "setting", ".ui.setting.SettingsPluginsUI", intent);
            AppMethodBeat.o(15685);
            return true;
        }
        AppMethodBeat.o(15685);
        return false;
    }
}
