package com.mexico.inloancash.activity;

import android.net.http.SslError;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.webkit.SslErrorHandler;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import butterknife.ButterKnife;
import com.indiaholacash.holacash.R;
import ඓ.K.K.K.C1293;

public class IndiaWebViewActivity extends BaseActivity {
    public WebView webView;

    /* renamed from: ඓ  reason: contains not printable characters */
    public int f2514;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public String f2515;

    /* renamed from: 㴹  reason: contains not printable characters */
    public String f2516;

    /* renamed from: com.mexico.inloancash.activity.IndiaWebViewActivity$K  reason: contains not printable characters */
    public class C0431 extends WebViewClient {
        public C0431(IndiaWebViewActivity indiaWebViewActivity) {
        }

        public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
            sslErrorHandler.proceed();
        }
    }

    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, com.mexico.inloancash.activity.BaseActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.india_activity_view_webview_layout);
        ButterKnife.m1066(this);
        m1459();
        this.f2514 = getIntent().getIntExtra("type", -1);
        this.f2516 = getIntent().getStringExtra("web");
        this.f2515 = getIntent().getStringExtra("orderno");
        int i = this.f2514;
        if (i == -1 || i != 1) {
            int i2 = this.f2514;
            if (i2 != -1 && i2 == 2) {
                StringBuilder r4 = C1293.m3416("");
                r4.append(this.f2516);
                r4.append("?orderno=");
                r4.append(this.f2515);
                Log.d("loan", r4.toString());
                WebView webView2 = this.webView;
                webView2.loadUrl(this.f2516 + "?orderno=" + this.f2515);
                return;
            }
            return;
        }
        WebView webView3 = this.webView;
        webView3.loadUrl(this.f2516 + "?AppName=gg");
    }

    /* renamed from: ؿ  reason: contains not printable characters */
    public void m1459() {
        WebSettings settings = this.webView.getSettings();
        settings.setJavaScriptEnabled(true);
        this.webView.setWebViewClient(new C0431(this));
        int i = Build.VERSION.SDK_INT;
        settings.setMixedContentMode(0);
        settings.setLoadWithOverviewMode(true);
        settings.setDomStorageEnabled(true);
        settings.setBlockNetworkImage(false);
        settings.setUseWideViewPort(true);
        settings.setJavaScriptEnabled(true);
        settings.setJavaScriptCanOpenWindowsAutomatically(true);
        settings.setUseWideViewPort(true);
        settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
        settings.setDisplayZoomControls(false);
        settings.setJavaScriptEnabled(true);
        settings.setAllowFileAccess(true);
        settings.setBuiltInZoomControls(true);
        settings.setSupportZoom(true);
    }
}
