导航菜单

页面标题

页面副标题

MT Manager v2.13.3 - DialogC0211.java 源代码

正在查看: MT Manager v2.13.3 应用的 DialogC0211.java JAVA 源代码文件

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


package l;

import android.R;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.umeng.commonsdk.statistics.idtracking.i;
import java.util.HashMap;
import java.util.Locale;

public final class DialogC0211 extends Dialog {

    public int f863;

    public Context f864;

    public String f865;

    public FrameLayout f866;

    public ProgressBar f867;

    public boolean f868;

    public C0432 f869;

    public Button f870;

    public InterfaceC1200 f871;

    public String f872;

    public String f873;

    public String f874;

    public long f875;

    public Handler f876;

    public LinearLayout f877;

    public FrameLayout f878;

    public ۠ۦ۫ۗ f879;

    public ۜۢ۫ۗ f880;

    public HashMap f881;

    public long f882;

    public static void m1767(DialogC0211 dialogC0211, String str) {
        dialogC0211.getClass();
        new StringBuilder(str);
        if (TextUtils.isEmpty(dialogC0211.f873) || dialogC0211.f873.length() < 4) {
            return;
        }
        String str2 = dialogC0211.f873;
        str2.substring(str2.length() - 4);
    }

    public static void m1779(DialogC0211 dialogC0211) {
        dialogC0211.f863++;
    }

    public static void m1781(DialogC0211 dialogC0211, String str) {
        dialogC0211.f874 += ((Object) str);
    }

    public static boolean m1782(DialogC0211 dialogC0211) {
        dialogC0211.getClass();
        if (ۘ۬۫ۗ.ۨ == null) {
            ۘ۬۫ۗ.ۨ = new ۘ۬۫ۗ();
        }
        ۘ۬۫ۗ r0 = ۘ۬۫ۗ.ۨ;
        r0.getClass();
        int ceil = (int) Math.ceil((Math.random() * 20.0d) + 3.0d);
        char[] charArray = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toCharArray();
        int length = charArray.length;
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < ceil; i++) {
            double random = Math.random();
            double d = length;
            Double.isNaN(d);
            Double.isNaN(d);
            Double.isNaN(d);
            stringBuffer.append(charArray[(int) (random * d)]);
        }
        String stringBuffer2 = stringBuffer.toString();
        ۖ۬۫ۗ r2 = new ۖ۬۫ۗ();
        r2.ۗ = dialogC0211.f871;
        String str = r0.ۗ(r2);
        String str2 = dialogC0211.f874;
        String substring = str2.substring(0, str2.indexOf("?"));
        Bundle m950 = C0106.m950(dialogC0211.f874);
        m950.putString("token_key", stringBuffer2);
        m950.putString(i.a, str);
        m950.putString("browser", "1");
        String str3 = substring + "?" + ۤۧ۫ۗ.ۗ(m950);
        dialogC0211.f874 = str3;
        return C0106.m944(dialogC0211.f864, str3);
    }

    public DialogC0211(Activity activity, String str, InterfaceC1200 interfaceC1200, C3265 c3265) {
        super(activity, R.style.Theme.Translucent.NoTitleBar);
        this.f868 = false;
        this.f882 = 0L;
        this.f875 = 30000L;
        this.f864 = activity;
        this.f874 = str;
        c3265.getClass();
        this.f880 = new ۜۢ۫ۗ(this, str, interfaceC1200);
        this.f876 = new ۗ۬۫ۗ(this, this.f880, activity.getMainLooper());
        this.f871 = interfaceC1200;
        this.f872 = "action_login";
        this.f879 = new ۠ۦ۫ۗ();
        getWindow().setSoftInputMode(32);
    }

    @Override
    public final void onCreate(Bundle bundle) {
        TextView textView;
        requestWindowFeature(1);
        super.onCreate(bundle);
        this.f867 = new ProgressBar(this.f864);
        this.f867.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
        this.f877 = new LinearLayout(this.f864);
        if (this.f872.equals("action_login")) {
            LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
            layoutParams.gravity = 16;
            layoutParams.leftMargin = 5;
            textView = new TextView(this.f864);
            if (Locale.getDefault().getLanguage().equals("zh")) {
                textView.setText("登录中...");
            } else {
                textView.setText("Logging in...");
            }
            textView.setTextColor(Color.rgb(255, 255, 255));
            textView.setTextSize(18.0f);
            textView.setLayoutParams(layoutParams);
        } else {
            textView = null;
        }
        FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-2, -2);
        layoutParams2.gravity = 17;
        this.f877.setLayoutParams(layoutParams2);
        this.f877.addView(this.f867);
        if (textView != null) {
            this.f877.addView(textView);
        }
        this.f866 = new FrameLayout(this.f864);
        FrameLayout.LayoutParams layoutParams3 = new FrameLayout.LayoutParams(-1, -1);
        layoutParams3.gravity = 17;
        this.f866.setLayoutParams(layoutParams3);
        this.f866.setBackgroundColor(Color.parseColor("#B3000000"));
        this.f866.addView(this.f877);
        Button button = new Button(this.f864);
        this.f870 = button;
        button.setBackgroundDrawable(C0106.m936(this.f864, "h5_qr_back.png"));
        FrameLayout.LayoutParams layoutParams4 = new FrameLayout.LayoutParams(-2, -2);
        layoutParams4.leftMargin = C0362.m2962(this.f864, 20.0f);
        layoutParams4.topMargin = C0362.m2962(this.f864, 10.0f);
        this.f870.setLayoutParams(layoutParams4);
        this.f870.setOnClickListener(new ۠ۢ۫ۗ(this));
        FrameLayout.LayoutParams layoutParams5 = new FrameLayout.LayoutParams(-1, -1);
        C0432 c0432 = new C0432(this.f864);
        this.f869 = c0432;
        c0432.setLayerType(1, null);
        this.f869.setLayoutParams(layoutParams5);
        FrameLayout frameLayout = new FrameLayout(this.f864);
        this.f878 = frameLayout;
        layoutParams5.gravity = 17;
        frameLayout.setLayoutParams(layoutParams5);
        this.f878.addView(this.f869);
        this.f878.addView(this.f866);
        String string = C0106.m950(this.f874).getString("style");
        if (string != null && "qr".equals(string)) {
            this.f878.addView(this.f870);
        }
        setContentView(this.f878);
        this.f869.setVerticalScrollBarEnabled(false);
        this.f869.setHorizontalScrollBarEnabled(false);
        this.f869.setWebViewClient(new C0326(this));
        this.f869.setWebChromeClient(new WebChromeClient());
        this.f869.clearFormData();
        this.f869.clearSslPreferences();
        this.f869.setOnLongClickListener(new ۥۢ۫ۗ());
        this.f869.setOnTouchListener(new ViewOnTouchListenerC1808());
        WebSettings settings = this.f869.getSettings();
        settings.setSavePassword(false);
        settings.setSaveFormData(false);
        settings.setCacheMode(-1);
        settings.setNeedInitialFocus(false);
        settings.setBuiltInZoomControls(true);
        settings.setSupportZoom(true);
        settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
        settings.setJavaScriptEnabled(true);
        settings.setDatabaseEnabled(true);
        settings.setDatabasePath(this.f864.getDir("databases", 0).getPath());
        settings.setDomStorageEnabled(true);
        C1160.m5597("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f874);
        String str = this.f874;
        this.f865 = str;
        this.f869.loadUrl(str);
        this.f869.setVisibility(4);
        this.f869.getSettings().setSavePassword(false);
        this.f879.m13517(new ۤۦ۫ۗ(), "SecureJsInterface");
        setOnDismissListener(new DialogInterfaceOnDismissListenerC1080());
        this.f881 = new HashMap();
    }

    @Override
    public final void onBackPressed() {
        if (!this.f868) {
            this.f880.onCancel();
        }
        super.onBackPressed();
    }

    @Override
    public final void onStop() {
        super.onStop();
    }

    public static String m1771(DialogC0211 dialogC0211) {
        String str = dialogC0211.f874;
        String str2 = "http://login.imgcache.qq.com/ptlogin/static/qzsjump.html?" + str.substring(str.indexOf("?") + 1);
        C1160.m5603("openSDK_LOG.AuthDialog", "-->generateDownloadUrl, url: http://login.imgcache.qq.com/ptlogin/static/qzsjump.html?");
        return str2;
    }

    public final void m1785(String str) {
        StringBuilder m13243 = C3955.m13243("javascript:", str, "();void(");
        m13243.append(System.currentTimeMillis());
        m13243.append(");");
        this.f869.loadUrl(m13243.toString());
    }

    @Override
    public final void dismiss() {
        this.f881.clear();
        this.f876.removeCallbacksAndMessages(null);
        if (isShowing()) {
            super.dismiss();
        }
        C0432 c0432 = this.f869;
        if (c0432 != null) {
            c0432.destroy();
            this.f869 = null;
        }
    }
}