导航菜单

页面标题

页面副标题

Housing v14.7.8 - d.java 源代码

正在查看: Housing v14.7.8 应用的 d.java JAVA 源代码文件

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


package com.gspl.leegalitysdk;

import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.net.http.SslError;
import android.webkit.SslErrorHandler;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ProgressBar;

public class d extends WebViewClient {
    private final Context context;
    private final ProgressBar progressBar;

    public d(ProgressBar progressBar, Leegality leegality) {
        this.progressBar = progressBar;
        this.context = leegality;
    }

    @Override
    public final void onPageFinished(WebView webView, String str) {
        super.onPageFinished(webView, str);
        this.progressBar.setVisibility(8);
    }

    @Override
    public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
        AlertDialog.Builder builder = new AlertDialog.Builder(this.context);
        builder.setMessage(i.notification_error_ssl_cert_invalid);
        builder.setPositiveButton("Continue", new b(this, sslErrorHandler));
        builder.setNegativeButton("Cancel", new c(this, sslErrorHandler));
        builder.create().show();
        super.onReceivedSslError(webView, sslErrorHandler, sslError);
    }

    @Override
    public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
        if (!str.equals("https://resident.uidai.gov.in/web/resident/vidgeneration")) {
            return false;
        }
        this.context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str)));
        return true;
    }
}