导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - TransitActivity.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 TransitActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.lantern.tools.widget.common;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.google.android.inner_exoplayer2.analytics.AnalyticsListener;
import com.google.android.inner_exoplayer2.text.ttml.TtmlNode;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import gn.b;
import os.C0457a;
import qs.C0454b;
import qs.C0455c;

public class TransitActivity extends Activity {
    public static ChangeQuickRedirect changeQuickRedirect;

    public final void a(String str, Bundle bundle) {
        if (PatchProxy.proxy(new Object[]{str, bundle}, this, changeQuickRedirect, false, AnalyticsListener.EVENT_AUDIO_DECODER_INITIALIZED, new Class[]{String.class, Bundle.class}, Void.TYPE).isSupported) {
            return;
        }
        b.o(getBaseContext(), str, bundle);
        overridePendingTransition(0, 0);
    }

    public final void b(Bundle bundle) {
        if (PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, AnalyticsListener.EVENT_AUDIO_ENABLED, new Class[]{Bundle.class}, Void.TYPE).isSupported || bundle == null) {
            return;
        }
        String string = bundle.getString("linkurl", "");
        String string2 = bundle.getString("name", "");
        int i = bundle.getInt(TtmlNode.TAG_STYLE, -1);
        boolean z = bundle.getBoolean("diversion", false);
        String str = bundle.getBoolean("noNeaybyAp", false) ? "nohotspot" : "hotspot";
        if (!z) {
            C0457a.d(i, string2, string);
            return;
        }
        if (!C0454b.d()) {
            str = "switchoff";
        }
        C0457a.f("widget_icon_click", str, string2, string);
    }

    @Override
    public void finish() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, AnalyticsListener.EVENT_AUDIO_INPUT_FORMAT_CHANGED, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.finish();
        overridePendingTransition(0, 0);
    }

    @Override
    public void onCreate(Bundle bundle) {
        if (PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, AnalyticsListener.EVENT_BANDWIDTH_ESTIMATE, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            return;
        }
        super.onCreate(bundle);
        Intent intent = getIntent();
        if (intent == null) {
            finish();
            return;
        }
        Bundle extras = intent.getExtras();
        try {
            String stringExtra = intent.getStringExtra("linkurl");
            int intExtra = intent.getIntExtra("widget_wifi_status", -1);
            pa.b.e("ext_widget widget_wifi_status:" + intExtra);
            int intExtra2 = intent.getIntExtra("view_type", -1);
            if (intExtra == C0455c.STATUS_WIFI_SWITCH_OFF && intExtra2 == 1) {
                C0454b.a();
                a(stringExtra, extras);
            } else if (!TextUtils.isEmpty(stringExtra)) {
                a(stringExtra, extras);
            }
            b(extras);
            finish();
        } catch (Throwable unused) {
        }
    }
}