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.model.aw;
import com.tencent.mm.model.c;
import com.tencent.mm.plugin.account.bind.ui.BindMContactIntroUI;
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.sdk.platformtools.bo;
import com.tencent.mm.ui.MMWizardActivity;
import com.tencent.ytcommon.BuildConfig;

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

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

    /* Access modifiers changed, original: final */
    public final m dr(String str) {
        return null;
    }

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

    /* 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(15690);
        if (str.equals("weixin://setting/account/safedevice")) {
            aw.ZK();
            String str2 = (String) c.Ry().get(6, BuildConfig.FLAVOR);
            aw.ZK();
            String str3 = (String) c.Ry().get(4097, BuildConfig.FLAVOR);
            Intent intent;
            if (!bo.isNullOrNil(str2)) {
                intent = new Intent();
                if (URISpanHandlerSet.a(this.cgy) instanceof Service) {
                    intent.addFlags(ErrorDialogData.BINDER_CRASH);
                }
                d.H(URISpanHandlerSet.a(this.cgy), "account", ".security.ui.MySafeDeviceListUI");
            } else if (bo.isNullOrNil(str3)) {
                intent = new Intent();
                if (URISpanHandlerSet.a(this.cgy) instanceof Service) {
                    intent.addFlags(ErrorDialogData.BINDER_CRASH);
                }
                d.a(URISpanHandlerSet.a(this.cgy), "account", ".security.ui.BindSafeDeviceUI", intent);
            } else {
                intent = new Intent(URISpanHandlerSet.a(this.cgy), BindMContactIntroUI.class);
                intent.putExtra("bind_scene", 1);
                if (URISpanHandlerSet.a(this.cgy) instanceof Service) {
                    intent.addFlags(ErrorDialogData.BINDER_CRASH);
                }
                MMWizardActivity.J(URISpanHandlerSet.a(this.cgy), intent);
            }
            AppMethodBeat.o(15690);
            return true;
        }
        AppMethodBeat.o(15690);
        return false;
    }
}
