せい v4.7.3版本的 MD5 值为:203275d28cdb30ff42801fbf3f03f780

以下内容为反编译后的 k.java 源代码,内容仅作参考


package ud;

import android.R;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.Window;
import android.webkit.SslErrorHandler;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.core.app.NotificationCompat;
import androidx.work.WorkRequest;
import com.huawei.hms.framework.common.ContainerUtils;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import org.json.JSONException;
import org.json.JSONObject;
import qh.v0;
import ud.l;

public final class k extends Dialog {

    public String f16928a;

    public final b f16929b;

    public final me.b f16930c;

    public final c f16931d;

    public FrameLayout f16932e;

    public LinearLayout f16933f;

    public FrameLayout f16934g;

    public ProgressBar f16935h;

    public final String f16936m;

    public com.tencent.open.c.c f16937n;

    public final Context f16938o;

    public final de.c f16939p;
    public boolean q;

    public int f16940r;

    public String f16941s;

    public String f16942t;

    public long f16943u;

    public final long f16944v;

    public HashMap<String, Runnable> f16945w;

    public class a extends WebViewClient {

        public class RunnableC0230a implements Runnable {
            public RunnableC0230a() {
            }

            @Override
            public final void run() {
                k kVar = k.this;
                kVar.f16937n.loadUrl(kVar.f16941s);
            }
        }

        public a() {
        }

        @Override
        public final void onPageFinished(WebView webView, String str) {
            super.onPageFinished(webView, str);
            be.a.h("openSDK_LOG.AuthDialog", "-->onPageFinished, url: " + str);
            k kVar = k.this;
            kVar.f16934g.setVisibility(8);
            com.tencent.open.c.c cVar = kVar.f16937n;
            if (cVar != null) {
                cVar.setVisibility(0);
            }
            if (!TextUtils.isEmpty(str)) {
                kVar.f16931d.removeCallbacks(kVar.f16945w.remove(str));
            }
        }

        @Override
        public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
            be.a.h("openSDK_LOG.AuthDialog", "-->onPageStarted, url: " + str);
            super.onPageStarted(webView, str, bitmap);
            k kVar = k.this;
            kVar.f16934g.setVisibility(0);
            kVar.f16943u = SystemClock.elapsedRealtime();
            boolean isEmpty = TextUtils.isEmpty(kVar.f16941s);
            c cVar = kVar.f16931d;
            if (!isEmpty) {
                cVar.removeCallbacks(kVar.f16945w.remove(kVar.f16941s));
            }
            kVar.f16941s = str;
            d dVar = new d(str);
            kVar.f16945w.put(str, dVar);
            cVar.postDelayed(dVar, 120000L);
        }

        @Override
        public final void onReceivedError(WebView webView, int i, String str, String str2) {
            super.onReceivedError(webView, i, str, str2);
            be.a.f("openSDK_LOG.AuthDialog", "-->onReceivedError, errorCode: " + i + " | description: " + str);
            k kVar = k.this;
            boolean n10 = ce.l.n(kVar.f16938o);
            b bVar = kVar.f16929b;
            if (!n10) {
                bVar.w(new me.d(9001, "当前网络不可用,请稍后重试!", str2));
                kVar.dismiss();
                return;
            }
            if (!kVar.f16941s.startsWith("https://imgcache.qq.com/ptlogin/static/qzsjump.html?")) {
                long elapsedRealtime = SystemClock.elapsedRealtime() - kVar.f16943u;
                int i2 = kVar.f16940r;
                if (i2 < 1 && elapsedRealtime < kVar.f16944v) {
                    kVar.f16940r = i2 + 1;
                    kVar.f16931d.postDelayed(new RunnableC0230a(), 500L);
                    return;
                }
                com.tencent.open.c.c cVar = kVar.f16937n;
                String str3 = kVar.f16928a;
                String str4 = "https://imgcache.qq.com/ptlogin/static/qzsjump.html?" + str3.substring(str3.indexOf("?") + 1);
                be.a.f("openSDK_LOG.AuthDialog", "-->generateDownloadUrl, url: https://imgcache.qq.com/ptlogin/static/qzsjump.html?");
                cVar.loadUrl(str4);
                return;
            }
            bVar.w(new me.d(i, str, str2));
            kVar.dismiss();
        }

        @Override
        @TargetApi(8)
        public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
            be.a.c("openSDK_LOG.AuthDialog", "-->onReceivedSslError " + sslError.getPrimaryError() + "请求不合法,请检查手机安全设置,如系统时间、代理等");
            sslErrorHandler.cancel();
        }

        @Override
        public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
            Uri parse;
            List<String> pathSegments;
            be.a.h("openSDK_LOG.AuthDialog", "-->Redirect URL: " + str);
            boolean startsWith = str.startsWith("auth://browser");
            k kVar = k.this;
            if (startsWith) {
                JSONObject o10 = ce.l.o(str);
                kVar.getClass();
                if (l.f16957c == null) {
                    l.f16957c = new l();
                }
                l lVar = l.f16957c;
                lVar.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++) {
                    stringBuffer.append(charArray[(int) (Math.random() * length)]);
                }
                String stringBuffer2 = stringBuffer.toString();
                l.a aVar = new l.a();
                aVar.f16959a = kVar.f16930c;
                int i2 = l.f16956b + 1;
                l.f16956b = i2;
                try {
                    lVar.f16958a.put("" + i2, aVar);
                } catch (Throwable th2) {
                    th2.printStackTrace();
                }
                String f10 = ac.d.f("", i2);
                String str2 = kVar.f16928a;
                String str3 = "?";
                String substring = str2.substring(0, str2.indexOf("?"));
                Bundle l2 = ce.l.l(kVar.f16928a);
                l2.putString("token_key", stringBuffer2);
                l2.putString("serial", f10);
                l2.putString("browser", PushConstants.PUSH_TYPE_THROUGH_MESSAGE);
                String str4 = substring + "?" + ce.b.c(ce.b.a(l2));
                kVar.f16928a = str4;
                boolean i10 = ce.l.i(kVar.f16938o, str4);
                kVar.q = i10;
                if (!i10) {
                    if (o10.optString("fail_cb", null) != null) {
                        StringBuilder l10 = ac.d.l("javascript:", o10.optString("fail_cb"), "();void(");
                        l10.append(System.currentTimeMillis());
                        l10.append(");");
                        kVar.f16937n.loadUrl(l10.toString());
                    } else if (o10.optInt("fall_to_wv") == 1) {
                        StringBuilder sb2 = new StringBuilder();
                        sb2.append(kVar.f16928a);
                        if (kVar.f16928a.indexOf("?") > -1) {
                            str3 = ContainerUtils.FIELD_DELIMITER;
                        }
                        sb2.append(str3);
                        kVar.f16928a = sb2.toString();
                        String h10 = a9.f.h(new StringBuilder(), kVar.f16928a, "browser_error=1");
                        kVar.f16928a = h10;
                        kVar.f16937n.loadUrl(h10);
                    } else {
                        String optString = o10.optString("redir", null);
                        if (optString != null) {
                            kVar.f16937n.loadUrl(optString);
                        }
                    }
                }
                return true;
            }
            if (str.startsWith("auth://tauth.qq.com/")) {
                kVar.f16929b.B(ce.l.o(str));
                kVar.dismiss();
                return true;
            }
            if (str.startsWith("auth://cancel")) {
                kVar.f16929b.onCancel();
                kVar.dismiss();
                return true;
            }
            if (str.startsWith("auth://close")) {
                kVar.dismiss();
                return true;
            }
            if (!str.startsWith("download://") && !str.endsWith(".apk")) {
                if (str.startsWith("auth://progress")) {
                    try {
                        pathSegments = Uri.parse(str).getPathSegments();
                    } catch (Exception unused) {
                    }
                    if (pathSegments.isEmpty()) {
                        return true;
                    }
                    int intValue = Integer.valueOf(pathSegments.get(0)).intValue();
                    if (intValue == 0) {
                        kVar.f16934g.setVisibility(8);
                        kVar.f16937n.setVisibility(0);
                    } else if (intValue == 1) {
                        kVar.f16934g.setVisibility(0);
                    }
                    return true;
                }
                if (str.startsWith("auth://onLoginSubmit")) {
                    try {
                        List<String> pathSegments2 = Uri.parse(str).getPathSegments();
                        if (!pathSegments2.isEmpty()) {
                            kVar.f16942t = pathSegments2.get(0);
                        }
                    } catch (Exception unused2) {
                    }
                    return true;
                }
                if (kVar.f16939p.b(kVar.f16937n, str)) {
                    return true;
                }
                be.a.f("openSDK_LOG.AuthDialog", "-->Redirect URL: return false");
                return false;
            }
            try {
                if (str.startsWith("download://")) {
                    parse = Uri.parse(Uri.decode(str.substring(11)));
                } else {
                    parse = Uri.parse(Uri.decode(str));
                }
                Intent intent = new Intent("android.intent.action.VIEW", parse);
                intent.addFlags(268435456);
                kVar.f16938o.startActivity(intent);
            } catch (Exception e10) {
                be.a.d("openSDK_LOG.AuthDialog", "-->start download activity exception, e: ", e10);
            }
            return true;
        }
    }

    public class b extends me.a {

        public final String f16948a = "action_login";

        public final String f16949b;

        public me.b f16950c;

        public b(String str, me.b bVar) {
            this.f16949b = str;
            this.f16950c = bVar;
        }

        @Override
        public final void B(Object obj) {
            JSONObject jSONObject = (JSONObject) obj;
            ae.h.b().e(a9.f.h(new StringBuilder(), this.f16948a, "_H5"), SystemClock.elapsedRealtime(), 0L, 0L, jSONObject.optInt("ret", -6), this.f16949b);
            me.b bVar = this.f16950c;
            if (bVar != null) {
                bVar.B(jSONObject);
                this.f16950c = null;
            }
        }

        @Override
        public final void onCancel() {
            me.b bVar = this.f16950c;
            if (bVar != null) {
                bVar.onCancel();
                this.f16950c = null;
            }
        }

        @Override
        public final void w(me.d dVar) {
            String str = dVar.f12760b;
            String str2 = this.f16949b;
            if (str != null) {
                str2 = ac.d.h(str, str2);
            }
            ae.h.b().e(a9.f.h(new StringBuilder(), this.f16948a, "_H5"), SystemClock.elapsedRealtime(), 0L, 0L, dVar.f12759a, str2);
            k kVar = k.this;
            kVar.getClass();
            new StringBuilder(str2);
            if (!TextUtils.isEmpty(kVar.f16942t) && kVar.f16942t.length() >= 4) {
                String str3 = kVar.f16942t;
                str3.substring(str3.length() - 4);
            }
            me.b bVar = this.f16950c;
            if (bVar != null) {
                bVar.w(dVar);
                this.f16950c = null;
            }
        }
    }

    public class c extends Handler {

        public final b f16952a;

        public c(b bVar, Looper looper) {
            super(looper);
            this.f16952a = bVar;
        }

        @Override
        public final void handleMessage(Message message) {
            int i = message.what;
            b bVar = this.f16952a;
            if (i != 1) {
                if (i != 2) {
                    if (i == 3) {
                        Context context = k.this.f16938o;
                        try {
                            JSONObject s10 = ce.l.s((String) message.obj);
                            int i2 = s10.getInt("type");
                            Toast.makeText(context.getApplicationContext(), s10.getString(NotificationCompat.CATEGORY_MESSAGE), i2).show();
                            return;
                        } catch (JSONException e10) {
                            e10.printStackTrace();
                            return;
                        }
                    }
                    return;
                }
                bVar.onCancel();
                return;
            }
            String str = (String) message.obj;
            bVar.getClass();
            try {
                bVar.B(ce.l.s(str));
            } catch (JSONException e11) {
                e11.printStackTrace();
                bVar.w(new me.d(-4, "服务器返回数据格式有误!", str));
            }
        }
    }

    public class d implements Runnable {

        public final String f16954a;

        public d(String str) {
            this.f16954a = "";
            this.f16954a = str;
        }

        @Override
        public final void run() {
            StringBuilder sb2 = new StringBuilder("-->timeoutUrl: ");
            String str = this.f16954a;
            sb2.append(str);
            sb2.append(" | mRetryUrl: ");
            k kVar = k.this;
            sb2.append(kVar.f16941s);
            be.a.h("openSDK_LOG.AuthDialog", sb2.toString());
            if (str.equals(kVar.f16941s)) {
                kVar.f16929b.w(new me.d(9002, "请求页面超时,请稍后重试!", kVar.f16941s));
                kVar.dismiss();
            }
        }
    }

    public k(Activity activity, String str, me.b bVar, f fVar) {
        super(activity, R.style.Theme.Translucent.NoTitleBar);
        this.q = false;
        this.f16943u = 0L;
        this.f16944v = WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS;
        this.f16938o = activity;
        this.f16928a = str;
        String str2 = fVar.f16922a;
        b bVar2 = new b(str, bVar);
        this.f16929b = bVar2;
        this.f16931d = new c(bVar2, activity.getMainLooper());
        this.f16930c = bVar;
        this.f16936m = "action_login";
        this.f16939p = new de.c();
        getWindow().setSoftInputMode(32);
    }

    @Override
    public final void dismiss() {
        this.f16945w.clear();
        this.f16931d.removeCallbacksAndMessages(null);
        try {
            Context context = this.f16938o;
            if ((context instanceof Activity) && !((Activity) context).isFinishing() && isShowing()) {
                super.dismiss();
                be.a.f("openSDK_LOG.AuthDialog", "-->dismiss dialog");
            }
        } catch (Exception e10) {
            be.a.d("openSDK_LOG.AuthDialog", "-->dismiss dialog exception:", e10);
        }
        com.tencent.open.c.c cVar = this.f16937n;
        if (cVar != null) {
            cVar.destroy();
            this.f16937n = null;
        }
    }

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

    @Override
    public final void onCreate(Bundle bundle) {
        TextView textView;
        InputStream inputStream;
        StringBuilder sb2;
        requestWindowFeature(1);
        Window window = getWindow();
        if (window != null) {
            window.setFlags(1024, 1024);
        }
        super.onCreate(bundle);
        if (window != null) {
            window.getDecorView().setSystemUiVisibility(1280);
        }
        Context context = this.f16938o;
        this.f16935h = new ProgressBar(context);
        this.f16935h.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
        this.f16933f = new LinearLayout(context);
        InputStream inputStream2 = null;
        r3 = null;
        Drawable drawable = null;
        if (this.f16936m.equals("action_login")) {
            LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
            layoutParams.gravity = 16;
            layoutParams.leftMargin = 5;
            textView = new TextView(context);
            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.f16933f.setLayoutParams(layoutParams2);
        this.f16933f.addView(this.f16935h);
        if (textView != null) {
            this.f16933f.addView(textView);
        }
        this.f16934g = new FrameLayout(context);
        FrameLayout.LayoutParams layoutParams3 = new FrameLayout.LayoutParams(-1, -1);
        layoutParams3.gravity = 17;
        this.f16934g.setLayoutParams(layoutParams3);
        this.f16934g.setBackgroundColor(Color.parseColor("#B3000000"));
        this.f16934g.addView(this.f16933f);
        FrameLayout.LayoutParams layoutParams4 = new FrameLayout.LayoutParams(-1, -1);
        com.tencent.open.c.c cVar = new com.tencent.open.c.c(context);
        this.f16937n = cVar;
        cVar.setLayerType(1, null);
        this.f16937n.setLayoutParams(layoutParams4);
        FrameLayout frameLayout = new FrameLayout(context);
        this.f16932e = frameLayout;
        layoutParams4.gravity = 17;
        frameLayout.setLayoutParams(layoutParams4);
        this.f16932e.addView(this.f16937n);
        this.f16932e.addView(this.f16934g);
        String string = ce.l.l(this.f16928a).getString("style");
        if (string != null && "qr".equals(string)) {
            FrameLayout frameLayout2 = this.f16932e;
            ImageView imageView = new ImageView(context);
            int l2 = v0.l(context, 15.6f);
            int l10 = v0.l(context, 25.2f);
            int l11 = v0.l(context, 10.0f);
            int i = l11 * 2;
            FrameLayout.LayoutParams layoutParams5 = new FrameLayout.LayoutParams(l2 + i, l10 + i);
            layoutParams5.leftMargin = l11;
            imageView.setLayoutParams(layoutParams5);
            imageView.setPadding(l11, l11, l11, l11);
            try {
                inputStream = context.getAssets().open("h5_qr_back.png");
                try {
                    try {
                        drawable = Drawable.createFromStream(inputStream, "h5_qr_back.png");
                        try {
                            inputStream.close();
                        } catch (Exception e10) {
                            e = e10;
                            sb2 = new StringBuilder("inputStream close exception: ");
                            sb2.append(e.getMessage());
                            be.a.c("openSDK_LOG.Util", sb2.toString());
                            imageView.setImageDrawable(drawable);
                            imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
                            imageView.setOnClickListener(new g(this));
                            frameLayout2.addView(imageView);
                            setContentView(this.f16932e);
                            this.f16937n.setVerticalScrollBarEnabled(false);
                            this.f16937n.setHorizontalScrollBarEnabled(false);
                            this.f16937n.setWebViewClient(new a());
                            this.f16937n.setWebChromeClient(new WebChromeClient());
                            this.f16937n.clearFormData();
                            this.f16937n.clearSslPreferences();
                            this.f16937n.setOnLongClickListener(new h());
                            this.f16937n.setOnTouchListener(new i());
                            WebSettings settings = this.f16937n.getSettings();
                            settings.setSavePassword(false);
                            settings.setAllowFileAccess(false);
                            settings.setAllowFileAccessFromFileURLs(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(context.getDir("databases", 0).getPath());
                            settings.setDomStorageEnabled(true);
                            be.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f16928a);
                            String str = this.f16928a;
                            this.f16941s = str;
                            this.f16937n.loadUrl(str);
                            this.f16937n.setVisibility(4);
                            this.f16939p.f18384a.put("SecureJsInterface", new de.a());
                            setOnDismissListener(new j());
                            this.f16945w = new HashMap<>();
                        }
                    } catch (IOException e11) {
                        e = e11;
                        be.a.c("openSDK_LOG.Util", "getDrawable exception: " + e.getMessage());
                        try {
                            inputStream.close();
                        } catch (Exception e12) {
                            e = e12;
                            sb2 = new StringBuilder("inputStream close exception: ");
                            sb2.append(e.getMessage());
                            be.a.c("openSDK_LOG.Util", sb2.toString());
                            imageView.setImageDrawable(drawable);
                            imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
                            imageView.setOnClickListener(new g(this));
                            frameLayout2.addView(imageView);
                            setContentView(this.f16932e);
                            this.f16937n.setVerticalScrollBarEnabled(false);
                            this.f16937n.setHorizontalScrollBarEnabled(false);
                            this.f16937n.setWebViewClient(new a());
                            this.f16937n.setWebChromeClient(new WebChromeClient());
                            this.f16937n.clearFormData();
                            this.f16937n.clearSslPreferences();
                            this.f16937n.setOnLongClickListener(new h());
                            this.f16937n.setOnTouchListener(new i());
                            WebSettings settings2 = this.f16937n.getSettings();
                            settings2.setSavePassword(false);
                            settings2.setAllowFileAccess(false);
                            settings2.setAllowFileAccessFromFileURLs(false);
                            settings2.setSaveFormData(false);
                            settings2.setCacheMode(-1);
                            settings2.setNeedInitialFocus(false);
                            settings2.setBuiltInZoomControls(true);
                            settings2.setSupportZoom(true);
                            settings2.setRenderPriority(WebSettings.RenderPriority.HIGH);
                            settings2.setJavaScriptEnabled(true);
                            settings2.setDatabaseEnabled(true);
                            settings2.setDatabasePath(context.getDir("databases", 0).getPath());
                            settings2.setDomStorageEnabled(true);
                            be.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f16928a);
                            String str2 = this.f16928a;
                            this.f16941s = str2;
                            this.f16937n.loadUrl(str2);
                            this.f16937n.setVisibility(4);
                            this.f16939p.f18384a.put("SecureJsInterface", new de.a());
                            setOnDismissListener(new j());
                            this.f16945w = new HashMap<>();
                        }
                        imageView.setImageDrawable(drawable);
                        imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
                        imageView.setOnClickListener(new g(this));
                        frameLayout2.addView(imageView);
                        setContentView(this.f16932e);
                        this.f16937n.setVerticalScrollBarEnabled(false);
                        this.f16937n.setHorizontalScrollBarEnabled(false);
                        this.f16937n.setWebViewClient(new a());
                        this.f16937n.setWebChromeClient(new WebChromeClient());
                        this.f16937n.clearFormData();
                        this.f16937n.clearSslPreferences();
                        this.f16937n.setOnLongClickListener(new h());
                        this.f16937n.setOnTouchListener(new i());
                        WebSettings settings22 = this.f16937n.getSettings();
                        settings22.setSavePassword(false);
                        settings22.setAllowFileAccess(false);
                        settings22.setAllowFileAccessFromFileURLs(false);
                        settings22.setSaveFormData(false);
                        settings22.setCacheMode(-1);
                        settings22.setNeedInitialFocus(false);
                        settings22.setBuiltInZoomControls(true);
                        settings22.setSupportZoom(true);
                        settings22.setRenderPriority(WebSettings.RenderPriority.HIGH);
                        settings22.setJavaScriptEnabled(true);
                        settings22.setDatabaseEnabled(true);
                        settings22.setDatabasePath(context.getDir("databases", 0).getPath());
                        settings22.setDomStorageEnabled(true);
                        be.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f16928a);
                        String str22 = this.f16928a;
                        this.f16941s = str22;
                        this.f16937n.loadUrl(str22);
                        this.f16937n.setVisibility(4);
                        this.f16939p.f18384a.put("SecureJsInterface", new de.a());
                        setOnDismissListener(new j());
                        this.f16945w = new HashMap<>();
                    }
                } catch (Throwable th2) {
                    th = th2;
                    inputStream2 = inputStream;
                    try {
                        inputStream2.close();
                    } catch (Exception e13) {
                        be.a.c("openSDK_LOG.Util", "inputStream close exception: " + e13.getMessage());
                    }
                    throw th;
                }
            } catch (IOException e14) {
                e = e14;
                inputStream = null;
            } catch (Throwable th3) {
                th = th3;
                inputStream2.close();
                throw th;
            }
            imageView.setImageDrawable(drawable);
            imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
            imageView.setOnClickListener(new g(this));
            frameLayout2.addView(imageView);
        }
        setContentView(this.f16932e);
        this.f16937n.setVerticalScrollBarEnabled(false);
        this.f16937n.setHorizontalScrollBarEnabled(false);
        this.f16937n.setWebViewClient(new a());
        this.f16937n.setWebChromeClient(new WebChromeClient());
        this.f16937n.clearFormData();
        this.f16937n.clearSslPreferences();
        this.f16937n.setOnLongClickListener(new h());
        this.f16937n.setOnTouchListener(new i());
        WebSettings settings222 = this.f16937n.getSettings();
        try {
            settings222.setSavePassword(false);
            settings222.setAllowFileAccess(false);
            settings222.setAllowFileAccessFromFileURLs(false);
        } catch (Exception e15) {
            be.a.d("openSDK_LOG.SystemUtils", "Exception", e15);
        }
        settings222.setSaveFormData(false);
        settings222.setCacheMode(-1);
        settings222.setNeedInitialFocus(false);
        settings222.setBuiltInZoomControls(true);
        settings222.setSupportZoom(true);
        settings222.setRenderPriority(WebSettings.RenderPriority.HIGH);
        settings222.setJavaScriptEnabled(true);
        settings222.setDatabaseEnabled(true);
        settings222.setDatabasePath(context.getDir("databases", 0).getPath());
        settings222.setDomStorageEnabled(true);
        be.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f16928a);
        String str222 = this.f16928a;
        this.f16941s = str222;
        this.f16937n.loadUrl(str222);
        this.f16937n.setVisibility(4);
        this.f16939p.f18384a.put("SecureJsInterface", new de.a());
        setOnDismissListener(new j());
        this.f16945w = new HashMap<>();
    }

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