Amour v4.6.9版本的 MD5 值为:60db0759ce21a7c5858136dd0821206f

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


package td;

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 ph.u0;
import td.l;
public final class k extends Dialog {
    public String f13890a;
    public final b f13891b;
    public final le.b f13892c;
    public final c f13893d;
    public FrameLayout f13894e;
    public LinearLayout f13895f;
    public FrameLayout f13896g;
    public ProgressBar f13897h;
    public final String f13898m;
    public com.tencent.open.c.c f13899n;
    public final Context f13900o;
    public final ce.c f13901p;
    public boolean q;
    public int f13902r;
    public String f13903s;
    public String f13904t;
    public long f13905u;
    public final long f13906v;
    public HashMap<String, Runnable> f13907w;

    public class a extends WebViewClient {

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

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

        public a() {
        }

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

        @Override
        public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
            ae.a.h("openSDK_LOG.AuthDialog", "-->onPageStarted, url: " + str);
            super.onPageStarted(webView, str, bitmap);
            k kVar = k.this;
            kVar.f13896g.setVisibility(0);
            kVar.f13905u = SystemClock.elapsedRealtime();
            boolean isEmpty = TextUtils.isEmpty(kVar.f13903s);
            c cVar = kVar.f13893d;
            if (!isEmpty) {
                cVar.removeCallbacks(kVar.f13907w.remove(kVar.f13903s));
            }
            kVar.f13903s = str;
            d dVar = new d(str);
            kVar.f13907w.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);
            ae.a.f("openSDK_LOG.AuthDialog", "-->onReceivedError, errorCode: " + i + " | description: " + str);
            k kVar = k.this;
            boolean n10 = be.l.n(kVar.f13900o);
            b bVar = kVar.f13891b;
            if (!n10) {
                bVar.v(new le.d(9001, "当前网络不可用,请稍后重试!", str2));
                kVar.dismiss();
            } else if (!kVar.f13903s.startsWith("https://imgcache.qq.com/ptlogin/static/qzsjump.html?")) {
                long elapsedRealtime = SystemClock.elapsedRealtime() - kVar.f13905u;
                int i10 = kVar.f13902r;
                if (i10 < 1 && elapsedRealtime < kVar.f13906v) {
                    kVar.f13902r = i10 + 1;
                    kVar.f13893d.postDelayed(new RunnableC0219a(), 500L);
                    return;
                }
                com.tencent.open.c.c cVar = kVar.f13899n;
                String str3 = kVar.f13890a;
                ae.a.f("openSDK_LOG.AuthDialog", "-->generateDownloadUrl, url: https://imgcache.qq.com/ptlogin/static/qzsjump.html?");
                cVar.loadUrl("https://imgcache.qq.com/ptlogin/static/qzsjump.html?" + str3.substring(str3.indexOf("?") + 1));
            } else {
                bVar.v(new le.d(i, str, str2));
                kVar.dismiss();
            }
        }

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

        @Override
        public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
            Uri parse;
            List<String> pathSegments;
            ae.a.h("openSDK_LOG.AuthDialog", "-->Redirect URL: " + str);
            boolean startsWith = str.startsWith("auth://browser");
            k kVar = k.this;
            if (startsWith) {
                JSONObject o10 = be.l.o(str);
                kVar.getClass();
                if (l.f13919c == null) {
                    l.f13919c = new l();
                }
                l lVar = l.f13919c;
                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.f13921a = kVar.f13892c;
                int i10 = l.f13918b + 1;
                l.f13918b = i10;
                try {
                    lVar.f13920a.put("" + i10, aVar);
                } catch (Throwable th2) {
                    th2.printStackTrace();
                }
                String d7 = a1.i.d("", i10);
                String str2 = kVar.f13890a;
                String str3 = "?";
                String substring = str2.substring(0, str2.indexOf("?"));
                Bundle l10 = be.l.l(kVar.f13890a);
                l10.putString("token_key", stringBuffer2);
                l10.putString("serial", d7);
                l10.putString("browser", PushConstants.PUSH_TYPE_THROUGH_MESSAGE);
                String str4 = substring + "?" + be.b.c(be.b.a(l10));
                kVar.f13890a = str4;
                boolean i11 = be.l.i(kVar.f13900o, str4);
                kVar.q = i11;
                if (!i11) {
                    if (o10.optString("fail_cb", null) != null) {
                        StringBuilder j10 = a1.i.j("javascript:", o10.optString("fail_cb"), "();void(");
                        j10.append(System.currentTimeMillis());
                        j10.append(");");
                        kVar.f13899n.loadUrl(j10.toString());
                    } else if (o10.optInt("fall_to_wv") == 1) {
                        StringBuilder sb2 = new StringBuilder();
                        sb2.append(kVar.f13890a);
                        if (kVar.f13890a.indexOf("?") > -1) {
                            str3 = ContainerUtils.FIELD_DELIMITER;
                        }
                        sb2.append(str3);
                        kVar.f13890a = sb2.toString();
                        String i12 = androidx.appcompat.graphics.drawable.a.i(new StringBuilder(), kVar.f13890a, "browser_error=1");
                        kVar.f13890a = i12;
                        kVar.f13899n.loadUrl(i12);
                    } else {
                        String optString = o10.optString("redir", null);
                        if (optString != null) {
                            kVar.f13899n.loadUrl(optString);
                        }
                    }
                }
                return true;
            } else if (str.startsWith("auth://tauth.qq.com/")) {
                kVar.f13891b.C(be.l.o(str));
                kVar.dismiss();
                return true;
            } else if (str.startsWith("auth://cancel")) {
                kVar.f13891b.onCancel();
                kVar.dismiss();
                return true;
            } else if (str.startsWith("auth://close")) {
                kVar.dismiss();
                return true;
            } else 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.f13896g.setVisibility(8);
                        kVar.f13899n.setVisibility(0);
                    } else if (intValue == 1) {
                        kVar.f13896g.setVisibility(0);
                    }
                    return true;
                } else if (str.startsWith("auth://onLoginSubmit")) {
                    try {
                        List<String> pathSegments2 = Uri.parse(str).getPathSegments();
                        if (!pathSegments2.isEmpty()) {
                            kVar.f13904t = pathSegments2.get(0);
                        }
                    } catch (Exception unused2) {
                    }
                    return true;
                } else if (kVar.f13901p.b(kVar.f13899n, str)) {
                    return true;
                } else {
                    ae.a.f("openSDK_LOG.AuthDialog", "-->Redirect URL: return false");
                    return false;
                }
            } else {
                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.f13900o.startActivity(intent);
                } catch (Exception e10) {
                    ae.a.d("openSDK_LOG.AuthDialog", "-->start download activity exception, e: ", e10);
                }
                return true;
            }
        }
    }

    public class b extends le.a {
        public final String f13910a = "action_login";
        public final String f13911b;
        public le.b f13912c;

        public b(String str, le.b bVar) {
            this.f13911b = str;
            this.f13912c = bVar;
        }

        @Override
        public final void C(Object obj) {
            JSONObject jSONObject = (JSONObject) obj;
            zd.h.b().e(androidx.appcompat.graphics.drawable.a.i(new StringBuilder(), this.f13910a, "_H5"), SystemClock.elapsedRealtime(), 0L, 0L, jSONObject.optInt("ret", -6), this.f13911b);
            le.b bVar = this.f13912c;
            if (bVar != null) {
                bVar.C(jSONObject);
                this.f13912c = null;
            }
        }

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

        @Override
        public final void v(le.d dVar) {
            String str = dVar.f9779c;
            String str2 = this.f13911b;
            if (str != null) {
                str2 = a1.i.f(str, str2);
            }
            zd.h.b().e(androidx.appcompat.graphics.drawable.a.i(new StringBuilder(), this.f13910a, "_H5"), SystemClock.elapsedRealtime(), 0L, 0L, dVar.f9778b, str2);
            k kVar = k.this;
            kVar.getClass();
            new StringBuilder(str2);
            if (!TextUtils.isEmpty(kVar.f13904t) && kVar.f13904t.length() >= 4) {
                String str3 = kVar.f13904t;
                str3.substring(str3.length() - 4);
            }
            le.b bVar = this.f13912c;
            if (bVar != null) {
                bVar.v(dVar);
                this.f13912c = null;
            }
        }
    }

    public class c extends Handler {
        public final b f13914a;

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

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

    public class d implements Runnable {
        public final String f13916a;

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

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

    public k(Activity activity, String str, le.b bVar, f fVar) {
        super(activity, 16973840);
        this.q = false;
        this.f13905u = 0L;
        this.f13906v = WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS;
        this.f13900o = activity;
        this.f13890a = str;
        String str2 = fVar.f13884a;
        b bVar2 = new b(str, bVar);
        this.f13891b = bVar2;
        this.f13893d = new c(bVar2, activity.getMainLooper());
        this.f13892c = bVar;
        this.f13898m = "action_login";
        this.f13901p = new ce.c();
        getWindow().setSoftInputMode(32);
    }

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

    @Override
    public final void onBackPressed() {
        if (!this.q) {
            this.f13891b.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.f13900o;
        this.f13897h = new ProgressBar(context);
        this.f13897h.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
        this.f13895f = new LinearLayout(context);
        InputStream inputStream2 = null;
        r3 = null;
        Drawable drawable = null;
        if (this.f13898m.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.f13895f.setLayoutParams(layoutParams2);
        this.f13895f.addView(this.f13897h);
        if (textView != null) {
            this.f13895f.addView(textView);
        }
        this.f13896g = new FrameLayout(context);
        FrameLayout.LayoutParams layoutParams3 = new FrameLayout.LayoutParams(-1, -1);
        layoutParams3.gravity = 17;
        this.f13896g.setLayoutParams(layoutParams3);
        this.f13896g.setBackgroundColor(Color.parseColor("#B3000000"));
        this.f13896g.addView(this.f13895f);
        FrameLayout.LayoutParams layoutParams4 = new FrameLayout.LayoutParams(-1, -1);
        com.tencent.open.c.c cVar = new com.tencent.open.c.c(context);
        this.f13899n = cVar;
        cVar.setLayerType(1, null);
        this.f13899n.setLayoutParams(layoutParams4);
        FrameLayout frameLayout = new FrameLayout(context);
        this.f13894e = frameLayout;
        layoutParams4.gravity = 17;
        frameLayout.setLayoutParams(layoutParams4);
        this.f13894e.addView(this.f13899n);
        this.f13894e.addView(this.f13896g);
        String string = be.l.l(this.f13890a).getString("style");
        if (string != null && "qr".equals(string)) {
            FrameLayout frameLayout2 = this.f13894e;
            ImageView imageView = new ImageView(context);
            int f10 = u0.f(context, 15.6f);
            int f11 = u0.f(context, 25.2f);
            int f12 = u0.f(context, 10.0f);
            int i = f12 * 2;
            FrameLayout.LayoutParams layoutParams5 = new FrameLayout.LayoutParams(f10 + i, f11 + i);
            layoutParams5.leftMargin = f12;
            imageView.setLayoutParams(layoutParams5);
            imageView.setPadding(f12, f12, f12, f12);
            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());
                            ae.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.f13894e);
                            this.f13899n.setVerticalScrollBarEnabled(false);
                            this.f13899n.setHorizontalScrollBarEnabled(false);
                            this.f13899n.setWebViewClient(new a());
                            this.f13899n.setWebChromeClient(new WebChromeClient());
                            this.f13899n.clearFormData();
                            this.f13899n.clearSslPreferences();
                            this.f13899n.setOnLongClickListener(new h());
                            this.f13899n.setOnTouchListener(new i());
                            WebSettings settings = this.f13899n.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);
                            ae.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f13890a);
                            String str = this.f13890a;
                            this.f13903s = str;
                            this.f13899n.loadUrl(str);
                            this.f13899n.setVisibility(4);
                            this.f13901p.f15363a.put("SecureJsInterface", new ce.a());
                            setOnDismissListener(new j());
                            this.f13907w = new HashMap<>();
                        }
                    } catch (IOException e11) {
                        e = e11;
                        ae.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());
                            ae.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.f13894e);
                            this.f13899n.setVerticalScrollBarEnabled(false);
                            this.f13899n.setHorizontalScrollBarEnabled(false);
                            this.f13899n.setWebViewClient(new a());
                            this.f13899n.setWebChromeClient(new WebChromeClient());
                            this.f13899n.clearFormData();
                            this.f13899n.clearSslPreferences();
                            this.f13899n.setOnLongClickListener(new h());
                            this.f13899n.setOnTouchListener(new i());
                            WebSettings settings2 = this.f13899n.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);
                            ae.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f13890a);
                            String str2 = this.f13890a;
                            this.f13903s = str2;
                            this.f13899n.loadUrl(str2);
                            this.f13899n.setVisibility(4);
                            this.f13901p.f15363a.put("SecureJsInterface", new ce.a());
                            setOnDismissListener(new j());
                            this.f13907w = new HashMap<>();
                        }
                        imageView.setImageDrawable(drawable);
                        imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
                        imageView.setOnClickListener(new g(this));
                        frameLayout2.addView(imageView);
                        setContentView(this.f13894e);
                        this.f13899n.setVerticalScrollBarEnabled(false);
                        this.f13899n.setHorizontalScrollBarEnabled(false);
                        this.f13899n.setWebViewClient(new a());
                        this.f13899n.setWebChromeClient(new WebChromeClient());
                        this.f13899n.clearFormData();
                        this.f13899n.clearSslPreferences();
                        this.f13899n.setOnLongClickListener(new h());
                        this.f13899n.setOnTouchListener(new i());
                        WebSettings settings22 = this.f13899n.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);
                        ae.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f13890a);
                        String str22 = this.f13890a;
                        this.f13903s = str22;
                        this.f13899n.loadUrl(str22);
                        this.f13899n.setVisibility(4);
                        this.f13901p.f15363a.put("SecureJsInterface", new ce.a());
                        setOnDismissListener(new j());
                        this.f13907w = new HashMap<>();
                    }
                } catch (Throwable th2) {
                    th = th2;
                    inputStream2 = inputStream;
                    try {
                        inputStream2.close();
                    } catch (Exception e13) {
                        ae.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.f13894e);
        this.f13899n.setVerticalScrollBarEnabled(false);
        this.f13899n.setHorizontalScrollBarEnabled(false);
        this.f13899n.setWebViewClient(new a());
        this.f13899n.setWebChromeClient(new WebChromeClient());
        this.f13899n.clearFormData();
        this.f13899n.clearSslPreferences();
        this.f13899n.setOnLongClickListener(new h());
        this.f13899n.setOnTouchListener(new i());
        WebSettings settings222 = this.f13899n.getSettings();
        try {
            settings222.setSavePassword(false);
            settings222.setAllowFileAccess(false);
            settings222.setAllowFileAccessFromFileURLs(false);
        } catch (Exception e15) {
            ae.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);
        ae.a.h("openSDK_LOG.AuthDialog", "-->mUrl : " + this.f13890a);
        String str222 = this.f13890a;
        this.f13903s = str222;
        this.f13899n.loadUrl(str222);
        this.f13899n.setVisibility(4);
        this.f13901p.f15363a.put("SecureJsInterface", new ce.a());
        setOnDismissListener(new j());
        this.f13907w = new HashMap<>();
    }

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